#4E2B87#4E2B87

#4E2B87 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.146 H 296.4°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#4E2B87
RGBrgb(78, 43, 135)
HSLhsl(263, 52%, 35%)
HSVhsv(263, 68%, 53%)
CMYKcmyk(42.2%, 68.1%, 0%, 47.1%)
CIE-LABlab(27.01, 37.14, -45.75)
CIE-LCHlch(27.01, 58.92, 309.07°)
OKLaboklab(38.69% 0.0648 -0.1306)
OKLCHoklch(38.69% 0.146 296.4)
XYZxyz(8.3778, 5.0966, 23.4593)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B87 #64872B
analogous
#2B3687 #4E2B87 #7C2B87
triadic
#4E2B87 #874E2B #2B874E
tetradic
#4E2B87 #872B36 #64872B #2B877C
square
#4E2B87 #872B36 #64872B #2B877C
split-complementary
#4E2B87 #877C2B #36872B
monochromatic
#180D2A #331C59 #4E2B87 #693AB5 #8960CC

Accessibility & contrast

On white

10.40
#4E2B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4E2B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2B87
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B87#FFFFFF#000000##FFFFFF
##4E2B871.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#3F4155
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2b87;
/* rgb */ color: rgb(78, 43, 135);
/* oklch */ color: oklch(38.7% 0.146 296.4);
Tailwind
colors: {
  custom: {
    50: '#8567ab',
    500: '#4e2b87',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b87;
$custom-light: #8567ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b87",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 262.826,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38694,
    "c": 0.14578,
    "h": 296.4
  },
  "luminance": 0.05097
}

Semantic roles & 50–950 ramp

primary
#4E2B87
secondary
#91B25B
accent
#DB4DA5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2B87

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

Preview Lab → · Contrast checker → · Palette generator →

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