#4E1F8E#4E1F8E

#4E1F8E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.169 H 296.6°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#4E1F8E
RGBrgb(78, 31, 142)
HSLhsl(265, 64%, 34%)
HSVhsv(265, 78%, 56%)
CMYKcmyk(45.1%, 78.2%, 0%, 44.3%)
CIE-LABlab(25.42, 45.18, -52.69)
CIE-LCHlch(25.42, 69.41, 310.61°)
OKLaboklab(37.75% 0.0754 -0.1509)
OKLCHoklch(37.75% 0.169 296.6)
XYZxyz(8.5131, 4.5525, 26.0161)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F8E #5F8E1F
analogous
#1F288E #4E1F8E #861F8E
triadic
#4E1F8E #8E4E1F #1F8E4E
tetradic
#4E1F8E #8E1F28 #5F8E1F #1F8E86
square
#4E1F8E #8E1F28 #5F8E1F #1F8E86
split-complementary
#4E1F8E #8E861F #288E1F
monochromatic
#17092A #32145C #4E1F8E #6A2AC0 #894FD9

Accessibility & contrast

On white

10.99
#4E1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4E1F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F8E
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F8E#FFFFFF#000000##FFFFFF
##4E1F8E1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#3D3D56
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e1f8e;
/* rgb */ color: rgb(78, 31, 142);
/* oklch */ color: oklch(37.8% 0.169 296.6);
Tailwind
colors: {
  custom: {
    50: '#8660b0',
    500: '#4e1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f8e;
$custom-light: #8660b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f8e",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 265.405,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37752,
    "c": 0.16871,
    "h": 296.6
  },
  "luminance": 0.04553
}

Semantic roles & 50–950 ramp

primary
#4E1F8E
secondary
#8DBB4D
accent
#E741A1
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4E1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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