#4E1687#4E1687

#4E1687 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.170 H 299.9°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#4E1687
RGBrgb(78, 22, 135)
HSLhsl(270, 72%, 31%)
HSVhsv(270, 84%, 53%)
CMYKcmyk(42.2%, 83.7%, 0%, 47.1%)
CIE-LABlab(23.48, 47.11, -51.50)
CIE-LCHlch(23.48, 69.80, 312.45°)
OKLaboklab(36.2% 0.0849 -0.1473)
OKLCHoklch(36.2% 0.17 299.9)
XYZxyz(7.8009, 3.9427, 23.2670)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1687 #4F8716
analogous
#161687 #4E1687 #861687
triadic
#4E1687 #874E16 #16874E
tetradic
#4E1687 #871616 #4F8716 #168786
square
#4E1687 #871616 #4F8716 #168786
split-complementary
#4E1687 #878616 #168716
monochromatic
#11051E #300D52 #4E1687 #6C1FBC #8B39DF

Accessibility & contrast

On white

11.74
#4E1687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4E1687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1687
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1687#FFFFFF#000000##FFFFFF
##4E16871.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#403650
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1687;
/* rgb */ color: rgb(78, 22, 135);
/* oklch */ color: oklch(36.2% 0.170 299.9);
Tailwind
colors: {
  custom: {
    50: '#865cab',
    500: '#4e1687',
    950: '#000000',
  },
}
SCSS
$custom: #4e1687;
$custom-light: #865cab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1687",
  "rgb": {
    "r": 78,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 269.735,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36203,
    "c": 0.17002,
    "h": 299.9
  },
  "luminance": 0.03943
}

Semantic roles & 50–950 ramp

primary
#4E1687
secondary
#7DBB3E
accent
#EF3995
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4E1687

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

Preview Lab → · Contrast checker → · Palette generator →

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