#4E1F7D#4E1F7D

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

Color values

HEX#4E1F7D
RGBrgb(78, 31, 125)
HSLhsl(270, 60%, 31%)
HSVhsv(270, 75%, 49%)
CMYKcmyk(37.6%, 75.2%, 0%, 51%)
CIE-LABlab(23.94, 40.72, -44.45)
CIE-LCHlch(23.94, 60.28, 312.49°)
OKLaboklab(36.25% 0.0797 -0.1267)
OKLCHoklch(36.25% 0.15 302.2)
XYZxyz(7.3327, 4.0803, 19.7993)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F7D #4E7D1F
analogous
#1F1F7D #4E1F7D #7D1F7D
triadic
#4E1F7D #7D4E1F #1F7D4E
tetradic
#4E1F7D #7D1F1F #4E7D1F #1F7D7D
square
#4E1F7D #7D1F1F #4E7D1F #1F7D7D
split-complementary
#4E1F7D #7D7D1F #1F7D1F
monochromatic
#11071B #2F134C #4E1F7D #6D2BAE #8B45D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E1F7D#FFFFFF#000000##FFFFFF
##4E1F7D1.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)
#003880
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#44364C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e1f7d;
/* rgb */ color: rgb(78, 31, 125);
/* oklch */ color: oklch(36.2% 0.150 302.2);
Tailwind
colors: {
  custom: {
    50: '#845fa3',
    500: '#4e1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f7d;
$custom-light: #845fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f7d",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 270,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36246,
    "c": 0.14966,
    "h": 302.2
  },
  "luminance": 0.0408
}

Semantic roles & 50–950 ramp

primary
#4E1F7D
secondary
#7CB048
accent
#E34494
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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