#4E2087#4E2087

#4E2087 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.160 H 298.6°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#4E2087
RGBrgb(78, 32, 135)
HSLhsl(267, 62%, 33%)
HSVhsv(267, 76%, 53%)
CMYKcmyk(42.2%, 76.3%, 0%, 47.1%)
CIE-LABlab(24.96, 42.86, -49.08)
CIE-LCHlch(24.96, 65.16, 311.13°)
OKLaboklab(37.23% 0.0764 -0.1403)
OKLCHoklch(37.23% 0.16 298.6)
XYZxyz(8.0305, 4.4019, 23.3435)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2087 #598720
analogous
#202587 #4E2087 #812087
triadic
#4E2087 #874E20 #20874E
tetradic
#4E2087 #872025 #598720 #208781
square
#4E2087 #872025 #598720 #208781
split-complementary
#4E2087 #878120 #258720
monochromatic
#150924 #311456 #4E2087 #6B2CB8 #894DD5

Accessibility & contrast

On white

11.17
#4E2087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4E2087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2087
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2087#FFFFFF#000000##FFFFFF
##4E20871.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#403B52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2087;
/* rgb */ color: rgb(78, 32, 135);
/* oklch */ color: oklch(37.2% 0.160 298.6);
Tailwind
colors: {
  custom: {
    50: '#8560ab',
    500: '#4e2087',
    950: '#000000',
  },
}
SCSS
$custom: #4e2087;
$custom-light: #8560ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2087",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 266.796,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37234,
    "c": 0.15976,
    "h": 298.6
  },
  "luminance": 0.04402
}

Semantic roles & 50–950 ramp

primary
#4E2087
secondary
#87B84B
accent
#E5439D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E2087

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

Preview Lab → · Contrast checker → · Palette generator →

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