#4E207B#4E207B

#4E207B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.146 H 302.7°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#4E207B
RGBrgb(78, 32, 123)
HSLhsl(270, 59%, 30%)
HSVhsv(270, 74%, 48%)
CMYKcmyk(36.6%, 74%, 0%, 51.8%)
CIE-LABlab(23.94, 39.71, -43.17)
CIE-LCHlch(23.94, 58.66, 312.61°)
OKLaboklab(36.2% 0.079 -0.1229)
OKLCHoklch(36.2% 0.146 302.7)
XYZxyz(7.2327, 4.0828, 19.1421)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E207B #4D7B20
analogous
#21207B #4E207B #7B207A
triadic
#4E207B #7B4E20 #207B4E
tetradic
#4E207B #7B2120 #4D7B20 #207A7B
square
#4E207B #7B2120 #4D7B20 #207A7B
split-complementary
#4E207B #7A7B20 #207B21
monochromatic
#10071A #2F134A #4E207B #6D2DAC #8B46CF

Accessibility & contrast

On white

11.56
#4E207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4E207B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E207B
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E207B#FFFFFF#000000##FFFFFF
##4E207B1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#45364B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e207b;
/* rgb */ color: rgb(78, 32, 123);
/* oklch */ color: oklch(36.2% 0.146 302.7);
Tailwind
colors: {
  custom: {
    50: '#8460a2',
    500: '#4e207b',
    950: '#000000',
  },
}
SCSS
$custom: #4e207b;
$custom-light: #8460a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e207b",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 270.33,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.362,
    "c": 0.14614,
    "h": 302.7
  },
  "luminance": 0.04083
}

Semantic roles & 50–950 ramp

primary
#4E207B
secondary
#7BAE49
accent
#E24693
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E207B

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

Preview Lab → · Contrast checker → · Palette generator →

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