#4E208B#4E208B

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

Color values

HEX#4E208B
RGBrgb(78, 32, 139)
HSLhsl(266, 63%, 34%)
HSVhsv(266, 77%, 55%)
CMYKcmyk(43.9%, 77%, 0%, 45.5%)
CIE-LABlab(25.31, 43.92, -51.01)
CIE-LCHlch(25.31, 67.31, 310.73°)
OKLaboklab(37.59% 0.0754 -0.146)
OKLCHoklch(37.59% 0.164 297.3)
XYZxyz(8.3174, 4.5166, 24.8547)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E208B #5D8B20
analogous
#20288B #4E208B #83208B
triadic
#4E208B #8B4E20 #208B4E
tetradic
#4E208B #8B2028 #5D8B20 #208B83
square
#4E208B #8B2028 #5D8B20 #208B83
split-complementary
#4E208B #8B8320 #288B20
monochromatic
#160928 #321559 #4E208B #6A2BBD #894FD6

Accessibility & contrast

On white

11.03
#4E208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E208B
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E208B#FFFFFF#000000##FFFFFF
##4E208B1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e208b;
/* rgb */ color: rgb(78, 32, 139);
/* oklch */ color: oklch(37.6% 0.164 297.3);
Tailwind
colors: {
  custom: {
    50: '#8661ae',
    500: '#4e208b',
    950: '#000000',
  },
}
SCSS
$custom: #4e208b;
$custom-light: #8661ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e208b",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 265.794,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37592,
    "c": 0.16427,
    "h": 297.3
  },
  "luminance": 0.04517
}

Semantic roles & 50–950 ramp

primary
#4E208B
secondary
#8BBA4D
accent
#E6429F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E208B

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

Preview Lab → · Contrast checker → · Palette generator →

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