#4D208E#4D208E

#4D208E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.168 H 295.8°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#4D208E
RGBrgb(77, 32, 142)
HSLhsl(265, 63%, 34%)
HSVhsv(265, 77%, 56%)
CMYKcmyk(45.8%, 77.5%, 0%, 44.3%)
CIE-LABlab(25.45, 44.55, -52.64)
CIE-LCHlch(25.45, 68.96, 310.24°)
OKLaboklab(37.75% 0.073 -0.1508)
OKLCHoklch(37.75% 0.168 295.8)
XYZxyz(8.4583, 4.5636, 26.0212)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D208E #618E20
analogous
#202A8E #4D208E #84208E
triadic
#4D208E #8E4D20 #208E4D
tetradic
#4D208E #8E202A #618E20 #208E84
square
#4D208E #8E202A #618E20 #208E84
split-complementary
#4D208E #8E8420 #2A8E20
monochromatic
#17092A #32155C #4D208E #682BC0 #8851D8

Accessibility & contrast

On white

10.98
#4D208E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4D208E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D208E
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D208E#FFFFFF#000000##FFFFFF
##4D208E1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#3B3E56
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d208e;
/* rgb */ color: rgb(77, 32, 142);
/* oklch */ color: oklch(37.7% 0.168 295.8);
Tailwind
colors: {
  custom: {
    50: '#8661b0',
    500: '#4d208e',
    950: '#000000',
  },
}
SCSS
$custom: #4d208e;
$custom-light: #8661b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d208e",
  "rgb": {
    "r": 77,
    "g": 32,
    "b": 142
  },
  "hsl": {
    "h": 264.545,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37747,
    "c": 0.16754,
    "h": 295.8
  },
  "luminance": 0.04564
}

Semantic roles & 50–950 ramp

primary
#4D208E
secondary
#8FBB4F
accent
#E642A3
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D208E

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

Preview Lab → · Contrast checker → · Palette generator →

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