#4C2F7C#4C2F7C
#4C2F7C is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.2% C 0.126 H 297.5°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).
Color values
| HEX | #4C2F7C |
|---|---|
| RGB | rgb(76, 47, 124) |
| HSL | hsl(263, 45%, 34%) |
| HSV | hsv(263, 62%, 49%) |
| CMYK | cmyk(38.7%, 62.1%, 0%, 51.4%) |
| CIE-LAB | lab(26.80, 31.23, -39.19) |
| CIE-LCH | lch(26.80, 50.11, 308.55°) |
| OKLab | oklab(38.23% 0.0579 -0.1114) |
| OKLCH | oklch(38.23% 0.126 297.5) |
| XYZ | xyz(7.6342, 5.0247, 19.6325) |
| Luminance | 0.0503 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.13
Rebeccapurple
#663399
ΔE00 6.30
Blueberry
#464196
ΔE00 7.26
Indigo
#4B0082
ΔE00 8.24
Royal Purple (survey)
#4B006E
ΔE00 8.59
Indigo (survey)
#380282
ΔE00 9.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C2F7C #5F7C2F
analogous
#2F387C #4C2F7C #722F7C
triadic
#4C2F7C #7C4C2F #2F7C4C
tetradic
#4C2F7C #7C2F38 #5F7C2F #2F7C72
square
#4C2F7C #7C2F38 #5F7C2F #2F7C72
split-complementary
#4C2F7C #7C722F #387C2F
monochromatic
#160D23 #311E50 #4C2F7C #6740A8 #8762C3
Accessibility & contrast
On white
10.47
#4C2F7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#4C2F7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C2F7C
10.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C2F7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C2F7C | 1.00 | 10.47 | 2.01 | 10.47 |
| #FFFFFF | 10.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00407E
Deuteranopia (green-blind)
#103E7A
Tritanopia (blue-blind)
#414051
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #4c2f7c; /* rgb */ color: rgb(76, 47, 124); /* oklch */ color: oklch(38.2% 0.126 297.5);
Tailwind
colors: {
custom: {
50: '#8269a2',
500: '#4c2f7c',
950: '#000000',
},
}SCSS
$custom: #4c2f7c; $custom-light: #8269a2; $custom-dark: #000000;
JSON
{
"hex": "#4c2f7c",
"rgb": {
"r": 76,
"g": 47,
"b": 124
},
"hsl": {
"h": 262.597,
"s": 45.029,
"l": 33.529
},
"oklch": {
"l": 0.3823,
"c": 0.12553,
"h": 297.5
},
"luminance": 0.05025
}Semantic roles & 50–950 ramp
primary
#4C2F7C
secondary
#8DAA5C
accent
#D553A4
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F