#4D308C#4D308C
#4D308C is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.8% C 0.145 H 293.2°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).
Color values
| HEX | #4D308C |
|---|---|
| RGB | rgb(77, 48, 140) |
| HSL | hsl(259, 49%, 37%) |
| HSV | hsv(259, 66%, 55%) |
| CMYK | cmyk(45%, 65.7%, 0%, 45.1%) |
| CIE-LAB | lab(28.34, 35.50, -46.70) |
| CIE-LCH | lch(28.34, 58.66, 307.24°) |
| OKLab | oklab(39.75% 0.0571 -0.1334) |
| OKLCH | oklch(39.75% 0.145 293.2) |
| XYZ | xyz(8.8499, 5.5849, 25.4176) |
| Luminance | 0.0558 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.32
Rebeccapurple
#663399
ΔE00 4.90
Blueberry
#464196
ΔE00 5.74
Indigo Blue
#3A18B1
ΔE00 7.79
Ocean Blue
#4F42B5
ΔE00 7.82
Indigo
#4B0082
ΔE00 8.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D308C #6F8C30
analogous
#30418C #4D308C #7B308C
triadic
#4D308C #8C4D30 #308C4D
tetradic
#4D308C #8C3041 #6F8C30 #308C7B
square
#4D308C #8C3041 #6F8C30 #308C7B
split-complementary
#4D308C #8C7B30 #418C30
monochromatic
#1B1131 #34205E #4D308C #6640BA #896ACC
Accessibility & contrast
On white
9.92
#4D308C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#4D308C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D308C
9.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D308C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D308C | 1.00 | 9.92 | 2.12 | 9.92 |
| #FFFFFF | 9.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#3B4659
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #4d308c; /* rgb */ color: rgb(77, 48, 140); /* oklch */ color: oklch(39.8% 0.145 293.2);
Tailwind
colors: {
custom: {
50: '#846aae',
500: '#4d308c',
950: '#000000',
},
}SCSS
$custom: #4d308c; $custom-light: #846aae; $custom-dark: #000000;
JSON
{
"hex": "#4d308c",
"rgb": {
"r": 77,
"g": 48,
"b": 140
},
"hsl": {
"h": 258.913,
"s": 48.936,
"l": 36.863
},
"oklch": {
"l": 0.39753,
"c": 0.1451,
"h": 293.2
},
"luminance": 0.05585
}Semantic roles & 50–950 ramp
primary
#4D308C
secondary
#9AB364
accent
#D84FAD
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F