#4E1F8A#4E1F8A

#4E1F8A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.164 H 297.8°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#4E1F8A
RGBrgb(78, 31, 138)
HSLhsl(266, 63%, 33%)
HSVhsv(266, 78%, 54%)
CMYKcmyk(43.5%, 77.5%, 0%, 45.9%)
CIE-LABlab(25.06, 44.12, -50.79)
CIE-LCHlch(25.06, 67.28, 310.98°)
OKLaboklab(37.39% 0.0765 -0.1453)
OKLCHoklch(37.39% 0.164 297.8)
XYZxyz(8.2181, 4.4345, 24.4628)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F8A #5B8A1F
analogous
#1F258A #4E1F8A #831F8A
triadic
#4E1F8A #8A4E1F #1F8A4E
tetradic
#4E1F8A #8A1F25 #5B8A1F #1F8A83
square
#4E1F8A #8A1F25 #5B8A1F #1F8A83
split-complementary
#4E1F8A #8A831F #258A1F
monochromatic
#160926 #321458 #4E1F8A #6A2ABC #894CD7

Accessibility & contrast

On white

11.13
#4E1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4E1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F8A
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F8A#FFFFFF#000000##FFFFFF
##4E1F8A1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#3F3B53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e1f8a;
/* rgb */ color: rgb(78, 31, 138);
/* oklch */ color: oklch(37.4% 0.164 297.8);
Tailwind
colors: {
  custom: {
    50: '#8660ad',
    500: '#4e1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f8a;
$custom-light: #8660ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f8a",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 266.355,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37387,
    "c": 0.16425,
    "h": 297.8
  },
  "luminance": 0.04435
}

Semantic roles & 50–950 ramp

primary
#4E1F8A
secondary
#89BA4B
accent
#E6419E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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