#4E1F81#4E1F81

#4E1F81 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.154 H 300.7°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#4E1F81
RGBrgb(78, 31, 129)
HSLhsl(269, 61%, 31%)
HSVhsv(269, 76%, 51%)
CMYKcmyk(39.5%, 76%, 0%, 49.4%)
CIE-LABlab(24.27, 41.76, -46.43)
CIE-LCHlch(24.27, 62.45, 311.96°)
OKLaboklab(36.59% 0.0788 -0.1325)
OKLCHoklch(36.59% 0.154 300.7)
XYZxyz(7.5933, 4.1846, 21.1723)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F81 #52811F
analogous
#1F2181 #4E1F81 #7F1F81
triadic
#4E1F81 #814E1F #1F814E
tetradic
#4E1F81 #811F21 #52811F #1F817F
square
#4E1F81 #811F21 #52811F #1F817F
split-complementary
#4E1F81 #817F1F #21811F
monochromatic
#12071E #301350 #4E1F81 #6C2BB2 #8A47D3

Accessibility & contrast

On white

11.43
#4E1F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4E1F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F81
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F81#FFFFFF#000000##FFFFFF
##4E1F811.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#43384E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e1f81;
/* rgb */ color: rgb(78, 31, 129);
/* oklch */ color: oklch(36.6% 0.154 300.7);
Tailwind
colors: {
  custom: {
    50: '#8560a6',
    500: '#4e1f81',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f81;
$custom-light: #8560a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f81",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 268.776,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3659,
    "c": 0.15417,
    "h": 300.7
  },
  "luminance": 0.04185
}

Semantic roles & 50–950 ramp

primary
#4E1F81
secondary
#80B448
accent
#E44397
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1F81

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

Preview Lab → · Contrast checker → · Palette generator →

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