#4E1F84#4E1F84

#4E1F84 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.158 H 299.7°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#4E1F84
RGBrgb(78, 31, 132)
HSLhsl(268, 62%, 32%)
HSVhsv(268, 77%, 52%)
CMYKcmyk(40.9%, 76.5%, 0%, 48.2%)
CIE-LABlab(24.53, 42.54, -47.90)
CIE-LCHlch(24.53, 64.06, 311.61°)
OKLaboklab(36.85% 0.0781 -0.1368)
OKLCHoklch(36.85% 0.158 299.7)
XYZxyz(7.7957, 4.2655, 22.2379)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F84 #55841F
analogous
#1F2384 #4E1F84 #811F84
triadic
#4E1F84 #844E1F #1F844E
tetradic
#4E1F84 #841F23 #55841F #1F8481
square
#4E1F84 #841F23 #55841F #1F8481
split-complementary
#4E1F84 #84811F #23841F
monochromatic
#130821 #311352 #4E1F84 #6B2BB6 #8A49D4

Accessibility & contrast

On white

11.33
#4E1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4E1F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F84
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F84#FFFFFF#000000##FFFFFF
##4E1F841.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003982
Tritanopia (blue-blind)
#413950
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e1f84;
/* rgb */ color: rgb(78, 31, 132);
/* oklch */ color: oklch(36.9% 0.158 299.7);
Tailwind
colors: {
  custom: {
    50: '#8560a9',
    500: '#4e1f84',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f84;
$custom-light: #8560a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f84",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 267.921,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36852,
    "c": 0.15754,
    "h": 299.7
  },
  "luminance": 0.04266
}

Semantic roles & 50–950 ramp

primary
#4E1F84
secondary
#83B748
accent
#E5439A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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