#4E1F8C#4E1F8C

#4E1F8C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.166 H 297.2°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#4E1F8C
RGBrgb(78, 31, 140)
HSLhsl(266, 64%, 34%)
HSVhsv(266, 78%, 55%)
CMYKcmyk(44.3%, 77.9%, 0%, 45.1%)
CIE-LABlab(25.24, 44.65, -51.75)
CIE-LCHlch(25.24, 68.34, 310.79°)
OKLaboklab(37.57% 0.076 -0.1481)
OKLCHoklch(37.57% 0.166 297.2)
XYZxyz(8.3643, 4.4930, 25.2324)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F8C #5D8C1F
analogous
#1F268C #4E1F8C #841F8C
triadic
#4E1F8C #8C4E1F #1F8C4E
tetradic
#4E1F8C #8C1F26 #5D8C1F #1F8C84
square
#4E1F8C #8C1F26 #5D8C1F #1F8C84
split-complementary
#4E1F8C #8C841F #268C1F
monochromatic
#160928 #32145A #4E1F8C #6A2ABE #894ED8

Accessibility & contrast

On white

11.06
#4E1F8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4E1F8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F8C
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F8C#FFFFFF#000000##FFFFFF
##4E1F8C1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#3E3C54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e1f8c;
/* rgb */ color: rgb(78, 31, 140);
/* oklch */ color: oklch(37.6% 0.166 297.2);
Tailwind
colors: {
  custom: {
    50: '#8660af',
    500: '#4e1f8c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f8c;
$custom-light: #8660af;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f8c",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 140
  },
  "hsl": {
    "h": 265.872,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37569,
    "c": 0.16648,
    "h": 297.2
  },
  "luminance": 0.04493
}

Semantic roles & 50–950 ramp

primary
#4E1F8C
secondary
#8BBB4C
accent
#E7419F
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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