#4E1F8F#4E1F8F

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

Color values

HEX#4E1F8F
RGBrgb(78, 31, 143)
HSLhsl(265, 64%, 34%)
HSVhsv(265, 78%, 56%)
CMYKcmyk(45.5%, 78.3%, 0%, 43.9%)
CIE-LABlab(25.51, 45.44, -53.16)
CIE-LCHlch(25.51, 69.94, 310.52°)
OKLaboklab(37.84% 0.0752 -0.1523)
OKLCHoklch(37.84% 0.17 296.3)
XYZxyz(8.5885, 4.5826, 26.4133)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F8F #608F1F
analogous
#1F288F #4E1F8F #861F8F
triadic
#4E1F8F #8F4E1F #1F8F4E
tetradic
#4E1F8F #8F1F28 #608F1F #1F8F86
square
#4E1F8F #8F1F28 #608F1F #1F8F86
split-complementary
#4E1F8F #8F861F #288F1F
monochromatic
#17092A #33145D #4E1F8F #692AC1 #894FD9

Accessibility & contrast

On white

10.96
#4E1F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4E1F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F8F
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F8F#FFFFFF#000000##FFFFFF
##4E1F8F1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#3C3D56
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e1f8f;
/* rgb */ color: rgb(78, 31, 143);
/* oklch */ color: oklch(37.8% 0.170 296.3);
Tailwind
colors: {
  custom: {
    50: '#8660b1',
    500: '#4e1f8f',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f8f;
$custom-light: #8660b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f8f",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 265.179,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37844,
    "c": 0.16982,
    "h": 296.3
  },
  "luminance": 0.04583
}

Semantic roles & 50–950 ramp

primary
#4E1F8F
secondary
#8EBC4E
accent
#E740A1
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4E1F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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