#4E287A#4E287A

#4E287A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.134 H 301.5°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#4E287A
RGBrgb(78, 40, 122)
HSLhsl(268, 51%, 32%)
HSVhsv(268, 67%, 48%)
CMYKcmyk(36.1%, 67.2%, 0%, 52.2%)
CIE-LABlab(25.39, 35.22, -40.19)
CIE-LCHlch(25.39, 53.44, 311.23°)
OKLaboklab(37.21% 0.0699 -0.1142)
OKLCHoklch(37.21% 0.134 301.5)
XYZxyz(7.4127, 4.5424, 18.8948)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E287A #547A28
analogous
#282B7A #4E287A #77287A
triadic
#4E287A #7A4E28 #287A4E
tetradic
#4E287A #7A282B #547A28 #287A77
square
#4E287A #7A282B #547A28 #287A77
split-complementary
#4E287A #7A7728 #2B7A28
monochromatic
#130A1E #31194C #4E287A #6B37A8 #8A55C7

Accessibility & contrast

On white

11.00
#4E287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E287A
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E287A#FFFFFF#000000##FFFFFF
##4E287A1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#063C78
Tritanopia (blue-blind)
#453A4D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e287a;
/* rgb */ color: rgb(78, 40, 122);
/* oklch */ color: oklch(37.2% 0.134 301.5);
Tailwind
colors: {
  custom: {
    50: '#8364a1',
    500: '#4e287a',
    950: '#000000',
  },
}
SCSS
$custom: #4e287a;
$custom-light: #8364a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e287a",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 267.805,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37211,
    "c": 0.13391,
    "h": 301.5
  },
  "luminance": 0.04542
}

Semantic roles & 50–950 ramp

primary
#4E287A
secondary
#82AC52
accent
#DA4E99
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E287A

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

Preview Lab → · Contrast checker → · Palette generator →

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