#4F229F#4F229F
#4F229F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.185 H 292.1°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).
Color values
| HEX | #4F229F |
|---|---|
| RGB | rgb(79, 34, 159) |
| HSL | hsl(262, 65%, 38%) |
| HSV | hsv(262, 79%, 62%) |
| CMYK | cmyk(50.3%, 78.6%, 0%, 37.6%) |
| CIE-LAB | lab(27.60, 48.53, -59.57) |
| CIE-LCH | lch(27.60, 76.84, 309.17°) |
| OKLab | oklab(39.79% 0.0696 -0.171) |
| OKLCH | oklch(39.79% 0.185 292.1) |
| XYZ | xyz(10.0527, 5.3091, 33.2893) |
| Luminance | 0.0531 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.01
Violet Blue
#510AC9
ΔE00 5.73
Rebeccapurple
#663399
ΔE00 5.78
Indigo
#4B0082
ΔE00 6.31
Ultramarine
#2000B1
ΔE00 6.74
Purple Blue
#5D21D0
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F229F #729F22
analogous
#22339F #4F229F #8D229F
triadic
#4F229F #9F4F22 #229F4F
tetradic
#4F229F #9F2233 #729F22 #229F8D
square
#4F229F #9F2233 #729F22 #229F8D
split-complementary
#4F229F #9F8D22 #339F22
monochromatic
#1D0C3A #36176D #4F229F #682DD1 #8C5FDD
Accessibility & contrast
On white
10.18
#4F229F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#4F229F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F229F
10.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F229F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F229F | 1.00 | 10.18 | 2.06 | 10.18 |
| #FFFFFF | 10.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#344560
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #4f229f; /* rgb */ color: rgb(79, 34, 159); /* oklch */ color: oklch(39.8% 0.185 292.1);
Tailwind
colors: {
custom: {
50: '#8963bc',
500: '#4f229f',
950: '#000000',
},
}SCSS
$custom: #4f229f; $custom-light: #8963bc; $custom-dark: #000000;
JSON
{
"hex": "#4f229f",
"rgb": {
"r": 79,
"g": 34,
"b": 159
},
"hsl": {
"h": 261.6,
"s": 64.767,
"l": 37.843
},
"oklch": {
"l": 0.39786,
"c": 0.18466,
"h": 292.1
},
"luminance": 0.0531
}Semantic roles & 50–950 ramp
primary
#4F229F
secondary
#9DC15B
accent
#E840AB
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0512
muted
#7D7A81