#4E287B#4E287B

#4E287B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.3% C 0.135 H 301.1°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#4E287B
RGBrgb(78, 40, 123)
HSLhsl(267, 51%, 32%)
HSVhsv(267, 67%, 48%)
CMYKcmyk(36.6%, 67.5%, 0%, 51.8%)
CIE-LABlab(25.46, 35.49, -40.71)
CIE-LCHlch(25.46, 54.01, 311.09°)
OKLaboklab(37.29% 0.0698 -0.1157)
OKLCHoklch(37.29% 0.135 301.1)
XYZxyz(7.4750, 4.5673, 19.2228)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E287B #557B28
analogous
#282C7B #4E287B #78287B
triadic
#4E287B #7B4E28 #287B4E
tetradic
#4E287B #7B282C #557B28 #287B78
square
#4E287B #7B282C #557B28 #287B78
split-complementary
#4E287B #7B7828 #2C7B28
monochromatic
#130A1F #31194D #4E287B #6B37A9 #8A56C8

Accessibility & contrast

On white

10.98
#4E287B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4E287B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E287B
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E287B#FFFFFF#000000##FFFFFF
##4E287B1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#043C79
Tritanopia (blue-blind)
#443A4E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e287b;
/* rgb */ color: rgb(78, 40, 123);
/* oklch */ color: oklch(37.3% 0.135 301.1);
Tailwind
colors: {
  custom: {
    50: '#8364a2',
    500: '#4e287b',
    950: '#000000',
  },
}
SCSS
$custom: #4e287b;
$custom-light: #8364a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e287b",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 123
  },
  "hsl": {
    "h": 267.47,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37289,
    "c": 0.13515,
    "h": 301.1
  },
  "luminance": 0.04567
}

Semantic roles & 50–950 ramp

primary
#4E287B
secondary
#83AD52
accent
#DA4D9A
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E287B

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

Preview Lab → · Contrast checker → · Palette generator →

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