Design
#rgb
#color
#css
#design
RGB Color
Matches an RGB color value in the format rgb(R, G, B) where each channel is 0–255.
✓ CSS value parsing✓ Design tool input✓ Color conversion
✓ Valid Examples
- rgb(255, 0, 0)
- rgb(0, 128, 255)
- rgb(74, 222, 128)
✗ Invalid Examples
- rgb(256, 0, 0)
- rgb(0, 0)
- rgba(0, 0, 0, 1)
Usage & Integration
Validate RGB Color natively in your backend or frontend without copying regex strings.
Node / Edge
import { validate } from '@regexto/validators';
validate('rgb-color', '...');Python
from regexto_validators import validate
validate("rgb-color", "...")Go
import "github.com/regex-to/validators-go"
valid, err := validators.Validate("rgb-color", "...")PHP
use RegexTo\Validators\Validator;
Validator::validate('rgb-color', '...');Rust
use regexto_validators::validate;
let is_valid = validate("rgb-color", "...").unwrap();