#4E2A87#4E2A87

#4E2A87 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.5% C 0.147 H 296.6°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#4E2A87
RGBrgb(78, 42, 135)
HSLhsl(263, 53%, 35%)
HSVhsv(263, 69%, 53%)
CMYKcmyk(42.2%, 68.9%, 0%, 47.1%)
CIE-LABlab(26.80, 37.70, -46.08)
CIE-LCHlch(26.80, 59.53, 309.29°)
OKLaboklab(38.55% 0.066 -0.1315)
OKLCHoklch(38.55% 0.147 296.6)
XYZxyz(8.3419, 5.0247, 23.4473)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A87 #63872A
analogous
#2A3587 #4E2A87 #7D2A87
triadic
#4E2A87 #874E2A #2A874E
tetradic
#4E2A87 #872A35 #63872A #2A877D
square
#4E2A87 #872A35 #63872A #2A877D
split-complementary
#4E2A87 #877D2A #35872A
monochromatic
#180D2A #331B58 #4E2A87 #6939B6 #895ECD

Accessibility & contrast

On white

10.47
#4E2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4E2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A87
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A87#FFFFFF#000000##FFFFFF
##4E2A871.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#404055
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2a87;
/* rgb */ color: rgb(78, 42, 135);
/* oklch */ color: oklch(38.5% 0.147 296.6);
Tailwind
colors: {
  custom: {
    50: '#8566ab',
    500: '#4e2a87',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a87;
$custom-light: #8566ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a87",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 263.226,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38548,
    "c": 0.14714,
    "h": 296.6
  },
  "luminance": 0.05025
}

Semantic roles & 50–950 ramp

primary
#4E2A87
secondary
#90B35A
accent
#DC4CA4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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