#4E1989#4E1989

#4E1989 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.169 H 298.9°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#4E1989
RGBrgb(78, 25, 137)
HSLhsl(268, 69%, 32%)
HSVhsv(268, 82%, 54%)
CMYKcmyk(43.1%, 81.8%, 0%, 46.3%)
CIE-LABlab(24.07, 46.45, -51.79)
CIE-LCHlch(24.07, 69.57, 311.89°)
OKLaboklab(36.67% 0.0819 -0.1482)
OKLCHoklch(36.67% 0.169 298.9)
XYZxyz(8.0037, 4.1210, 24.0358)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1989 #548919
analogous
#191C89 #4E1989 #861989
triadic
#4E1989 #894E19 #19894E
tetradic
#4E1989 #89191C #548919 #198986
square
#4E1989 #89191C #548919 #198986
split-complementary
#4E1989 #898619 #1C8919
monochromatic
#130621 #311055 #4E1989 #6B22BD #8A40DC

Accessibility & contrast

On white

11.51
#4E1989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4E1989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1989
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1989#FFFFFF#000000##FFFFFF
##4E19891.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.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: #4e1989;
/* rgb */ color: rgb(78, 25, 137);
/* oklch */ color: oklch(36.7% 0.169 298.9);
Tailwind
colors: {
  custom: {
    50: '#865dac',
    500: '#4e1989',
    950: '#000000',
  },
}
SCSS
$custom: #4e1989;
$custom-light: #865dac;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1989",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 268.393,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36667,
    "c": 0.16933,
    "h": 298.9
  },
  "luminance": 0.04121
}

Semantic roles & 50–950 ramp

primary
#4E1989
secondary
#82BC41
accent
#EC3C99
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1989

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

Preview Lab → · Contrast checker → · Palette generator →

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