#4E287D#4E287D

#4E287D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.138 H 300.4°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#4E287D
RGBrgb(78, 40, 125)
HSLhsl(267, 52%, 32%)
HSVhsv(267, 68%, 49%)
CMYKcmyk(37.6%, 68%, 0%, 51%)
CIE-LABlab(25.62, 36.04, -41.72)
CIE-LCHlch(25.62, 55.13, 310.82°)
OKLaboklab(37.45% 0.0696 -0.1187)
OKLCHoklch(37.45% 0.138 300.4)
XYZxyz(7.6014, 4.6179, 19.8889)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E287D #577D28
analogous
#282C7D #4E287D #79287D
triadic
#4E287D #7D4E28 #287D4E
tetradic
#4E287D #7D282C #577D28 #287D79
square
#4E287D #7D282C #577D28 #287D79
split-complementary
#4E287D #7D7928 #2C7D28
monochromatic
#140A20 #31194F #4E287D #6B37AB #8A56C9

Accessibility & contrast

On white

10.92
#4E287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4E287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E287D
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E287D#FFFFFF#000000##FFFFFF
##4E287D1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#443B4F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e287d;
/* rgb */ color: rgb(78, 40, 125);
/* oklch */ color: oklch(37.4% 0.138 300.4);
Tailwind
colors: {
  custom: {
    50: '#8465a3',
    500: '#4e287d',
    950: '#000000',
  },
}
SCSS
$custom: #4e287d;
$custom-light: #8465a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e287d",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 266.824,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37447,
    "c": 0.13761,
    "h": 300.4
  },
  "luminance": 0.04618
}

Semantic roles & 50–950 ramp

primary
#4E287D
secondary
#85AE53
accent
#DB4D9B
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E287D

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

Preview Lab → · Contrast checker → · Palette generator →

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