#4E285A#4E285A

#4E285A is a dark, moderate purple. Relative luminance 0.039; OKLCH L 35.0% C 0.094 H 317.6°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#4E285A
RGBrgb(78, 40, 90)
HSLhsl(286, 38%, 25%)
HSVhsv(286, 56%, 35%)
CMYKcmyk(13.3%, 55.6%, 0%, 64.7%)
CIE-LABlab(23.26, 27.03, -22.90)
CIE-LCHlch(23.26, 35.42, 319.72°)
OKLaboklab(34.97% 0.0696 -0.0636)
OKLCHoklch(34.97% 0.094 317.6)
XYZxyz(5.7459, 3.8757, 10.1163)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E285A #345A28
analogous
#35285A #4E285A #5A284D
triadic
#4E285A #5A4E28 #285A4E
tetradic
#4E285A #5A3528 #345A28 #284D5A
square
#4E285A #5A3528 #345A28 #284D5A
split-complementary
#4E285A #4D5A28 #285A35
monochromatic
#120915 #291530 #4E285A #733B84 #974EAF

Accessibility & contrast

On white

11.83
#4E285A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4E285A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E285A
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E285A#FFFFFF#000000##FFFFFF
##4E285A1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E355C
Deuteranopia (green-blind)
#2A3959
Tritanopia (blue-blind)
#4E2F3D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e285a;
/* rgb */ color: rgb(78, 40, 90);
/* oklch */ color: oklch(35.0% 0.094 317.6);
Tailwind
colors: {
  custom: {
    50: '#816389',
    500: '#4e285a',
    950: '#000000',
  },
}
SCSS
$custom: #4e285a;
$custom-light: #816389;
$custom-dark: #000000;
JSON
{
  "hex": "#4e285a",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 90
  },
  "hsl": {
    "h": 285.6,
    "s": 38.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34969,
    "c": 0.09429,
    "h": 317.6
  },
  "luminance": 0.03875
}

Semantic roles & 50–950 ramp

primary
#4E285A
secondary
#5F8D51
accent
#CE5975
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0A050B
muted
#7C7A7C

Preview Lab

Preview with #4E285A

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

Preview Lab → · Contrast checker → · Palette generator →

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