#4E1F85#4E1F85

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

Color values

HEX#4E1F85
RGBrgb(78, 31, 133)
HSLhsl(268, 62%, 32%)
HSVhsv(268, 77%, 52%)
CMYKcmyk(41.4%, 76.7%, 0%, 47.8%)
CIE-LABlab(24.62, 42.80, -48.39)
CIE-LCHlch(24.62, 64.60, 311.50°)
OKLaboklab(36.94% 0.0778 -0.1383)
OKLCHoklch(36.94% 0.159 299.4)
XYZxyz(7.8644, 4.2930, 22.6001)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F85 #56851F
analogous
#1F2385 #4E1F85 #811F85
triadic
#4E1F85 #854E1F #1F854E
tetradic
#4E1F85 #851F23 #56851F #1F8581
square
#4E1F85 #851F23 #56851F #1F8581
split-complementary
#4E1F85 #85811F #23851F
monochromatic
#140822 #311353 #4E1F85 #6B2BB7 #8A4AD5

Accessibility & contrast

On white

11.30
#4E1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4E1F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F85
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F85#FFFFFF#000000##FFFFFF
##4E1F851.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1f85;
/* rgb */ color: rgb(78, 31, 133);
/* oklch */ color: oklch(36.9% 0.159 299.4);
Tailwind
colors: {
  custom: {
    50: '#8560a9',
    500: '#4e1f85',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f85;
$custom-light: #8560a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f85",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 267.647,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3694,
    "c": 0.15866,
    "h": 299.4
  },
  "luminance": 0.04293
}

Semantic roles & 50–950 ramp

primary
#4E1F85
secondary
#84B749
accent
#E5439A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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