#4E285F#4E285F

#4E285F is a dark, moderate purple. Relative luminance 0.040; OKLCH L 35.3% C 0.100 H 314.3°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#4E285F
RGBrgb(78, 40, 95)
HSLhsl(281, 41%, 26%)
HSVhsv(281, 58%, 37%)
CMYKcmyk(17.9%, 57.9%, 0%, 62.7%)
CIE-LABlab(23.55, 28.23, -25.73)
CIE-LCHlch(23.55, 38.19, 317.66°)
OKLaboklab(35.28% 0.0701 -0.0718)
OKLCHoklch(35.28% 0.1 314.3)
XYZxyz(5.9659, 3.9637, 11.2751)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E285F #395F28
analogous
#33285F #4E285F #5F2855
triadic
#4E285F #5F4E28 #285F4E
tetradic
#4E285F #5F3328 #395F28 #28555F
square
#4E285F #5F3328 #395F28 #28555F
split-complementary
#4E285F #555F28 #285F33
monochromatic
#120916 #2B1634 #4E285F #713A8A #944DB4

Accessibility & contrast

On white

11.71
#4E285F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4E285F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E285F
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E285F#FFFFFF#000000##FFFFFF
##4E285F1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3661
Deuteranopia (green-blind)
#27395E
Tritanopia (blue-blind)
#4D313F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e285f;
/* rgb */ color: rgb(78, 40, 95);
/* oklch */ color: oklch(35.3% 0.100 314.3);
Tailwind
colors: {
  custom: {
    50: '#81648d',
    500: '#4e285f',
    950: '#000000',
  },
}
SCSS
$custom: #4e285f;
$custom-light: #81648d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e285f",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 95
  },
  "hsl": {
    "h": 281.455,
    "s": 40.741,
    "l": 26.471
  },
  "oklch": {
    "l": 0.35282,
    "c": 0.1004,
    "h": 314.3
  },
  "luminance": 0.03964
}

Semantic roles & 50–950 ramp

primary
#4E285F
secondary
#659251
accent
#D1577D
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0A050C
muted
#7C7A7D

Preview Lab

Preview with #4E285F

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

Preview Lab → · Contrast checker → · Palette generator →

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