#4E1789#4E1789

#4E1789 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.171 H 299.2°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#4E1789
RGBrgb(78, 23, 137)
HSLhsl(269, 71%, 31%)
HSVhsv(269, 83%, 54%)
CMYKcmyk(43.1%, 83.2%, 0%, 46.3%)
CIE-LABlab(23.80, 47.24, -52.23)
CIE-LCHlch(23.80, 70.42, 312.12°)
OKLaboklab(36.48% 0.0834 -0.1495)
OKLCHoklch(36.48% 0.171 299.2)
XYZxyz(7.9625, 4.0385, 24.0221)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1789 #528917
analogous
#171989 #4E1789 #871789
triadic
#4E1789 #894E17 #17894E
tetradic
#4E1789 #891719 #528917 #178987
square
#4E1789 #891719 #528917 #178987
split-complementary
#4E1789 #898717 #198917
monochromatic
#120520 #300E55 #4E1789 #6C20BD #8A3CDE

Accessibility & contrast

On white

11.62
#4E1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4E1789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1789
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1789#FFFFFF#000000##FFFFFF
##4E17891.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003887
Tritanopia (blue-blind)
#3F3851
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e1789;
/* rgb */ color: rgb(78, 23, 137);
/* oklch */ color: oklch(36.5% 0.171 299.2);
Tailwind
colors: {
  custom: {
    50: '#865cac',
    500: '#4e1789',
    950: '#000000',
  },
}
SCSS
$custom: #4e1789;
$custom-light: #865cac;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1789",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 268.947,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3648,
    "c": 0.1712,
    "h": 299.2
  },
  "luminance": 0.04039
}

Semantic roles & 50–950 ramp

primary
#4E1789
secondary
#80BD3F
accent
#EE3A97
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4E1789

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

Preview Lab → · Contrast checker → · Palette generator →

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