#4D208B#4D208B

#4D208B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.164 H 296.7°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#4D208B
RGBrgb(77, 32, 139)
HSLhsl(265, 63%, 34%)
HSVhsv(265, 77%, 55%)
CMYKcmyk(44.6%, 77%, 0%, 45.5%)
CIE-LABlab(25.18, 43.75, -51.22)
CIE-LCHlch(25.18, 67.36, 310.50°)
OKLaboklab(37.47% 0.0738 -0.1466)
OKLCHoklch(37.47% 0.164 296.7)
XYZxyz(8.2361, 4.4747, 24.8509)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D208B #5E8B20
analogous
#20288B #4D208B #82208B
triadic
#4D208B #8B4D20 #208B4D
tetradic
#4D208B #8B2028 #5E8B20 #208B82
square
#4D208B #8B2028 #5E8B20 #208B82
split-complementary
#4D208B #8B8220 #288B20
monochromatic
#160928 #311559 #4D208B #692BBD #884FD6

Accessibility & contrast

On white

11.08
#4D208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4D208B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D208B
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D208B#FFFFFF#000000##FFFFFF
##4D208B1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#3C3C54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d208b;
/* rgb */ color: rgb(77, 32, 139);
/* oklch */ color: oklch(37.5% 0.164 296.7);
Tailwind
colors: {
  custom: {
    50: '#8560ae',
    500: '#4d208b',
    950: '#000000',
  },
}
SCSS
$custom: #4d208b;
$custom-light: #8560ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d208b",
  "rgb": {
    "r": 77,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 265.234,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37473,
    "c": 0.16416,
    "h": 296.7
  },
  "luminance": 0.04475
}

Semantic roles & 50–950 ramp

primary
#4D208B
secondary
#8CBA4D
accent
#E642A1
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D208B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#4D208B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva