#4E1689#4E1689

#4E1689 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.172 H 299.3°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#4E1689
RGBrgb(78, 22, 137)
HSLhsl(269, 72%, 31%)
HSVhsv(269, 84%, 54%)
CMYKcmyk(43.1%, 83.9%, 0%, 46.3%)
CIE-LABlab(23.67, 47.61, -52.44)
CIE-LCHlch(23.67, 70.83, 312.23°)
OKLaboklab(36.39% 0.0842 -0.1501)
OKLCHoklch(36.39% 0.172 299.3)
XYZxyz(7.9430, 3.9996, 24.0156)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1689 #518916
analogous
#161889 #4E1689 #871689
triadic
#4E1689 #894E16 #16894E
tetradic
#4E1689 #891618 #518916 #168987
square
#4E1689 #891618 #518916 #168987
split-complementary
#4E1689 #898716 #188916
monochromatic
#120520 #300E54 #4E1689 #6C1EBE #8B3ADF

Accessibility & contrast

On white

11.67
#4E1689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4E1689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1689
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1689#FFFFFF#000000##FFFFFF
##4E16891.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003787
Tritanopia (blue-blind)
#3F3751
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1689;
/* rgb */ color: rgb(78, 22, 137);
/* oklch */ color: oklch(36.4% 0.172 299.3);
Tailwind
colors: {
  custom: {
    50: '#865cac',
    500: '#4e1689',
    950: '#000000',
  },
}
SCSS
$custom: #4e1689;
$custom-light: #865cac;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1689",
  "rgb": {
    "r": 78,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 269.217,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36391,
    "c": 0.17209,
    "h": 299.3
  },
  "luminance": 0.04
}

Semantic roles & 50–950 ramp

primary
#4E1689
secondary
#7FBD3E
accent
#EF3996
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4E1689

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

Preview Lab → · Contrast checker → · Palette generator →

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