#4E1F87#4E1F87

#4E1F87 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.161 H 298.7°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#4E1F87
RGBrgb(78, 31, 135)
HSLhsl(267, 63%, 33%)
HSVhsv(267, 77%, 53%)
CMYKcmyk(42.2%, 77%, 0%, 47.1%)
CIE-LABlab(24.79, 43.33, -49.35)
CIE-LCHlch(24.79, 65.67, 311.28°)
OKLaboklab(37.12% 0.0773 -0.1411)
OKLCHoklch(37.12% 0.161 298.7)
XYZxyz(8.0039, 4.3488, 23.3347)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F87 #58871F
analogous
#1F2487 #4E1F87 #821F87
triadic
#4E1F87 #874E1F #1F874E
tetradic
#4E1F87 #871F24 #58871F #1F8782
square
#4E1F87 #871F24 #58871F #1F8782
split-complementary
#4E1F87 #87821F #24871F
monochromatic
#140823 #311455 #4E1F87 #6B2AB9 #8A4BD6

Accessibility & contrast

On white

11.23
#4E1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4E1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F87
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F87#FFFFFF#000000##FFFFFF
##4E1F871.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#403A52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e1f87;
/* rgb */ color: rgb(78, 31, 135);
/* oklch */ color: oklch(37.1% 0.161 298.7);
Tailwind
colors: {
  custom: {
    50: '#8560ab',
    500: '#4e1f87',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f87;
$custom-light: #8560ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f87",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 267.115,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37118,
    "c": 0.1609,
    "h": 298.7
  },
  "luminance": 0.04349
}

Semantic roles & 50–950 ramp

primary
#4E1F87
secondary
#86B84A
accent
#E6429C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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