#4E287E#4E287E

#4E287E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.139 H 300.0°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#4E287E
RGBrgb(78, 40, 126)
HSLhsl(267, 52%, 33%)
HSVhsv(267, 68%, 49%)
CMYKcmyk(38.1%, 68.3%, 0%, 50.6%)
CIE-LABlab(25.69, 36.31, -42.23)
CIE-LCHlch(25.69, 55.69, 310.69°)
OKLaboklab(37.53% 0.0695 -0.1202)
OKLCHoklch(37.53% 0.139 300)
XYZxyz(7.6656, 4.6436, 20.2271)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E287E #587E28
analogous
#282D7E #4E287E #79287E
triadic
#4E287E #7E4E28 #287E4E
tetradic
#4E287E #7E282D #587E28 #287E79
square
#4E287E #7E282D #587E28 #287E79
split-complementary
#4E287E #7E7928 #2D7E28
monochromatic
#140B21 #311950 #4E287E #6B37AC #8A57CA

Accessibility & contrast

On white

10.89
#4E287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4E287E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E287E
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E287E#FFFFFF#000000##FFFFFF
##4E287E1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#433C4F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e287e;
/* rgb */ color: rgb(78, 40, 126);
/* oklch */ color: oklch(37.5% 0.139 300.0);
Tailwind
colors: {
  custom: {
    50: '#8465a4',
    500: '#4e287e',
    950: '#000000',
  },
}
SCSS
$custom: #4e287e;
$custom-light: #8465a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e287e",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 266.512,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37527,
    "c": 0.13884,
    "h": 300
  },
  "luminance": 0.04644
}

Semantic roles & 50–950 ramp

primary
#4E287E
secondary
#86AF53
accent
#DB4D9C
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E287E

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

Preview Lab → · Contrast checker → · Palette generator →

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