#4E1F80#4E1F80

#4E1F80 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.153 H 301.1°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#4E1F80
RGBrgb(78, 31, 128)
HSLhsl(269, 61%, 31%)
HSVhsv(269, 76%, 50%)
CMYKcmyk(39.1%, 75.8%, 0%, 49.8%)
CIE-LABlab(24.19, 41.50, -45.94)
CIE-LCHlch(24.19, 61.91, 312.09°)
OKLaboklab(36.5% 0.079 -0.1311)
OKLCHoklch(36.5% 0.153 301.1)
XYZxyz(7.5272, 4.1581, 20.8239)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F80 #51801F
analogous
#1F2080 #4E1F80 #7E1F80
triadic
#4E1F80 #804E1F #1F804E
tetradic
#4E1F80 #801F20 #51801F #1F807E
square
#4E1F80 #801F20 #51801F #1F807E
split-complementary
#4E1F80 #807E1F #20801F
monochromatic
#12071D #30134F #4E1F80 #6C2BB1 #8B47D2

Accessibility & contrast

On white

11.47
#4E1F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4E1F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F80
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F80#FFFFFF#000000##FFFFFF
##4E1F801.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#00397E
Tritanopia (blue-blind)
#43374E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e1f80;
/* rgb */ color: rgb(78, 31, 128);
/* oklch */ color: oklch(36.5% 0.153 301.1);
Tailwind
colors: {
  custom: {
    50: '#855fa6',
    500: '#4e1f80',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f80;
$custom-light: #855fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f80",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 269.072,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36504,
    "c": 0.15305,
    "h": 301.1
  },
  "luminance": 0.04158
}

Semantic roles & 50–950 ramp

primary
#4E1F80
secondary
#7FB348
accent
#E44496
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1F80

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

Preview Lab → · Contrast checker → · Palette generator →

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