#4D209B#4D209B

#4D209B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.182 H 292.3°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#4D209B
RGBrgb(77, 32, 155)
HSLhsl(262, 66%, 37%)
HSVhsv(262, 79%, 61%)
CMYKcmyk(50.3%, 79.4%, 0%, 39.2%)
CIE-LABlab(26.67, 48.06, -58.66)
CIE-LCHlch(26.67, 75.83, 309.33°)
OKLaboklab(38.97% 0.0692 -0.1684)
OKLCHoklch(38.97% 0.182 292.3)
XYZxyz(9.4918, 4.9770, 31.4645)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D209B #6E9B20
analogous
#20319B #4D209B #8B209B
triadic
#4D209B #9B4D20 #209B4D
tetradic
#4D209B #9B2031 #6E9B20 #209B8B
square
#4D209B #9B2031 #6E9B20 #209B8B
split-complementary
#4D209B #9B8B20 #319B20
monochromatic
#1B0B36 #341668 #4D209B #662ACE #8959DD

Accessibility & contrast

On white

10.52
#4D209B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4D209B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D209B
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D209B#FFFFFF#000000##FFFFFF
##4D209B1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419E
Deuteranopia (green-blind)
#003D99
Tritanopia (blue-blind)
#33435D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d209b;
/* rgb */ color: rgb(77, 32, 155);
/* oklch */ color: oklch(39.0% 0.182 292.3);
Tailwind
colors: {
  custom: {
    50: '#8761ba',
    500: '#4d209b',
    950: '#000000',
  },
}
SCSS
$custom: #4d209b;
$custom-light: #8761ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4d209b",
  "rgb": {
    "r": 77,
    "g": 32,
    "b": 155
  },
  "hsl": {
    "h": 261.951,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38968,
    "c": 0.1821,
    "h": 292.3
  },
  "luminance": 0.04977
}

Semantic roles & 50–950 ramp

primary
#4D209B
secondary
#9AC156
accent
#E93FAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4D209B

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

Preview Lab → · Contrast checker → · Palette generator →

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