#4D209D#4D209D

#4D209D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.184 H 291.8°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#4D209D
RGBrgb(77, 32, 157)
HSLhsl(262, 66%, 37%)
HSVhsv(262, 80%, 62%)
CMYKcmyk(51%, 79.6%, 0%, 38.4%)
CIE-LABlab(26.86, 48.60, -59.56)
CIE-LCHlch(26.86, 76.87, 309.21°)
OKLaboklab(39.16% 0.0686 -0.1711)
OKLCHoklch(39.16% 0.184 291.8)
XYZxyz(9.6612, 5.0448, 32.3564)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D209D #709D20
analogous
#20319D #4D209D #8C209D
triadic
#4D209D #9D4D20 #209D4D
tetradic
#4D209D #9D2031 #709D20 #209D8C
square
#4D209D #9D2031 #709D20 #209D8C
split-complementary
#4D209D #9D8C20 #319D20
monochromatic
#1B0B37 #34166A #4D209D #662AD0 #895ADD

Accessibility & contrast

On white

10.45
#4D209D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4D209D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D209D
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D209D#FFFFFF#000000##FFFFFF
##4D209D1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#003D9B
Tritanopia (blue-blind)
#32445E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d209d;
/* rgb */ color: rgb(77, 32, 157);
/* oklch */ color: oklch(39.2% 0.184 291.8);
Tailwind
colors: {
  custom: {
    50: '#8861bb',
    500: '#4d209d',
    950: '#000000',
  },
}
SCSS
$custom: #4d209d;
$custom-light: #8861bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d209d",
  "rgb": {
    "r": 77,
    "g": 32,
    "b": 157
  },
  "hsl": {
    "h": 261.6,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39161,
    "c": 0.18432,
    "h": 291.8
  },
  "luminance": 0.05045
}

Semantic roles & 50–950 ramp

primary
#4D209D
secondary
#9BC157
accent
#E93FAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4D209D

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

Preview Lab → · Contrast checker → · Palette generator →

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