#4D209E#4D209E

#4D209E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.185 H 291.6°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4D209E
RGBrgb(77, 32, 158)
HSLhsl(261, 66%, 37%)
HSVhsv(261, 80%, 62%)
CMYKcmyk(51.3%, 79.7%, 0%, 38%)
CIE-LABlab(26.96, 48.87, -60.02)
CIE-LCHlch(26.96, 77.39, 309.15°)
OKLaboklab(39.26% 0.0683 -0.1724)
OKLCHoklch(39.26% 0.185 291.6)
XYZxyz(9.7469, 5.0790, 32.8079)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D209E #719E20
analogous
#20329E #4D209E #8C209E
triadic
#4D209E #9E4D20 #209E4D
tetradic
#4D209E #9E2032 #719E20 #209E8C
square
#4D209E #9E2032 #719E20 #209E8C
split-complementary
#4D209E #9E8C20 #329E20
monochromatic
#1B0B38 #34166B #4D209E #662AD1 #895BDE

Accessibility & contrast

On white

10.42
#4D209E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4D209E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D209E
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D209E#FFFFFF#000000##FFFFFF
##4D209E1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#31445F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d209e;
/* rgb */ color: rgb(77, 32, 158);
/* oklch */ color: oklch(39.3% 0.185 291.6);
Tailwind
colors: {
  custom: {
    50: '#8862bc',
    500: '#4d209e',
    950: '#000000',
  },
}
SCSS
$custom: #4d209e;
$custom-light: #8862bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d209e",
  "rgb": {
    "r": 77,
    "g": 32,
    "b": 158
  },
  "hsl": {
    "h": 261.429,
    "s": 66.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39258,
    "c": 0.18543,
    "h": 291.6
  },
  "luminance": 0.05079
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D209E

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

Preview Lab → · Contrast checker → · Palette generator →

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