#4D308F#4D308F
#4D308F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.0% C 0.149 H 292.4°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).
Color values
| HEX | #4D308F |
|---|---|
| RGB | rgb(77, 48, 143) |
| HSL | hsl(258, 50%, 37%) |
| HSV | hsv(258, 66%, 56%) |
| CMYK | cmyk(46.2%, 66.4%, 0%, 43.9%) |
| CIE-LAB | lab(28.58, 36.38, -48.17) |
| CIE-LCH | lch(28.58, 60.36, 307.06°) |
| OKLab | oklab(40% 0.0567 -0.1377) |
| OKLCH | oklch(40% 0.149 292.4) |
| XYZ | xyz(9.0741, 5.6746, 26.5985) |
| Luminance | 0.0568 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.40
Rebeccapurple
#663399
ΔE00 4.81
Blueberry
#464196
ΔE00 5.61
Indigo Blue
#3A18B1
ΔE00 7.37
Ocean Blue
#4F42B5
ΔE00 7.42
Indigo
#4B0082
ΔE00 8.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D308F #728F30
analogous
#30428F #4D308F #7D308F
triadic
#4D308F #8F4D30 #308F4D
tetradic
#4D308F #8F3042 #728F30 #308F7D
square
#4D308F #8F3042 #728F30 #308F7D
split-complementary
#4D308F #8F7D30 #428F30
monochromatic
#1C1133 #342161 #4D308F #663FBD #8A6CCE
Accessibility & contrast
On white
9.84
#4D308F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#4D308F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D308F
9.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D308F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D308F | 1.00 | 9.84 | 2.14 | 9.84 |
| #FFFFFF | 9.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#3A475B
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #4d308f; /* rgb */ color: rgb(77, 48, 143); /* oklch */ color: oklch(40.0% 0.149 292.4);
Tailwind
colors: {
custom: {
50: '#856ab1',
500: '#4d308f',
950: '#000000',
},
}SCSS
$custom: #4d308f; $custom-light: #856ab1; $custom-dark: #000000;
JSON
{
"hex": "#4d308f",
"rgb": {
"r": 77,
"g": 48,
"b": 143
},
"hsl": {
"h": 258.316,
"s": 49.738,
"l": 37.451
},
"oklch": {
"l": 0.39998,
"c": 0.14897,
"h": 292.4
},
"luminance": 0.05675
}Semantic roles & 50–950 ramp
primary
#4D308F
secondary
#9DB566
accent
#D94FAF
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0611
muted
#7C7A80