#4E1F88#4E1F88

#4E1F88 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.162 H 298.4°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#4E1F88
RGBrgb(78, 31, 136)
HSLhsl(267, 63%, 33%)
HSVhsv(267, 77%, 53%)
CMYKcmyk(42.6%, 77.2%, 0%, 46.7%)
CIE-LABlab(24.88, 43.59, -49.84)
CIE-LCHlch(24.88, 66.21, 311.18°)
OKLaboklab(37.21% 0.0771 -0.1425)
OKLCHoklch(37.21% 0.162 298.4)
XYZxyz(8.0747, 4.3771, 23.7072)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F88 #59881F
analogous
#1F2588 #4E1F88 #821F88
triadic
#4E1F88 #884E1F #1F884E
tetradic
#4E1F88 #881F25 #59881F #1F8882
square
#4E1F88 #881F25 #59881F #1F8882
split-complementary
#4E1F88 #88821F #25881F
monochromatic
#150824 #311456 #4E1F88 #6B2ABA #894BD6

Accessibility & contrast

On white

11.20
#4E1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4E1F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F88
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F88#FFFFFF#000000##FFFFFF
##4E1F881.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003A86
Tritanopia (blue-blind)
#403B52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e1f88;
/* rgb */ color: rgb(78, 31, 136);
/* oklch */ color: oklch(37.2% 0.162 298.4);
Tailwind
colors: {
  custom: {
    50: '#8660ac',
    500: '#4e1f88',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f88;
$custom-light: #8660ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f88",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 266.857,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37207,
    "c": 0.16202,
    "h": 298.4
  },
  "luminance": 0.04377
}

Semantic roles & 50–950 ramp

primary
#4E1F88
secondary
#87B94A
accent
#E6429C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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