#4E217B#4E217B

#4E217B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.145 H 302.5°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#4E217B
RGBrgb(78, 33, 123)
HSLhsl(270, 58%, 31%)
HSVhsv(270, 73%, 48%)
CMYKcmyk(36.6%, 73.2%, 0%, 51.8%)
CIE-LABlab(24.12, 39.21, -42.88)
CIE-LCHlch(24.12, 58.11, 312.44°)
OKLaboklab(36.33% 0.0779 -0.1221)
OKLCHoklch(36.33% 0.145 302.5)
XYZxyz(7.2600, 4.1375, 19.1512)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E217B #4E7B21
analogous
#21217B #4E217B #7B217B
triadic
#4E217B #7B4E21 #217B4E
tetradic
#4E217B #7B2121 #4E7B21 #217B7B
square
#4E217B #7B2121 #4E7B21 #217B7B
split-complementary
#4E217B #7B7B21 #217B21
monochromatic
#11071A #2F144B #4E217B #6D2EAB #8B48CE

Accessibility & contrast

On white

11.49
#4E217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4E217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E217B
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E217B#FFFFFF#000000##FFFFFF
##4E217B1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e217b;
/* rgb */ color: rgb(78, 33, 123);
/* oklch */ color: oklch(36.3% 0.145 302.5);
Tailwind
colors: {
  custom: {
    50: '#8460a2',
    500: '#4e217b',
    950: '#000000',
  },
}
SCSS
$custom: #4e217b;
$custom-light: #8460a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e217b",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 270,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36327,
    "c": 0.14485,
    "h": 302.5
  },
  "luminance": 0.04137
}

Semantic roles & 50–950 ramp

primary
#4E217B
secondary
#7CAE4A
accent
#E14794
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E217B

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

Preview Lab → · Contrast checker → · Palette generator →

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