#4E2988#4E2988

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

Color values

HEX#4E2988
RGBrgb(78, 41, 136)
HSLhsl(263, 54%, 35%)
HSVhsv(263, 70%, 53%)
CMYKcmyk(42.6%, 69.9%, 0%, 46.7%)
CIE-LABlab(26.69, 38.52, -46.89)
CIE-LCHlch(26.69, 60.69, 309.40°)
OKLaboklab(38.49% 0.0669 -0.1339)
OKLCHoklch(38.49% 0.15 296.5)
XYZxyz(8.3776, 4.9830, 23.8082)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2988 #638829
analogous
#293488 #4E2988 #7D2988
triadic
#4E2988 #884E29 #29884E
tetradic
#4E2988 #882934 #638829 #29887D
square
#4E2988 #882934 #638829 #29887D
split-complementary
#4E2988 #887D29 #348829
monochromatic
#180D2A #331B59 #4E2988 #6937B7 #895DCE

Accessibility & contrast

On white

10.52
#4E2988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4E2988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2988
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2988#FFFFFF#000000##FFFFFF
##4E29881.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#3F4055
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2988;
/* rgb */ color: rgb(78, 41, 136);
/* oklch */ color: oklch(38.5% 0.150 296.5);
Tailwind
colors: {
  custom: {
    50: '#8566ab',
    500: '#4e2988',
    950: '#000000',
  },
}
SCSS
$custom: #4e2988;
$custom-light: #8566ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2988",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 136
  },
  "hsl": {
    "h": 263.368,
    "s": 53.672,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38488,
    "c": 0.14972,
    "h": 296.5
  },
  "luminance": 0.04983
}

Semantic roles & 50–950 ramp

primary
#4E2988
secondary
#90B459
accent
#DD4BA4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2988

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

Preview Lab → · Contrast checker → · Palette generator →

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