#5E285F#5E285F

#5E285F is a dark, moderate purple. Relative luminance 0.047; OKLCH L 37.5% C 0.110 H 326.8°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#5E285F
RGBrgb(94, 40, 95)
HSLhsl(299, 41%, 26%)
HSVhsv(299, 58%, 37%)
CMYKcmyk(1.1%, 57.9%, 0%, 62.7%)
CIE-LABlab(25.93, 33.14, -21.81)
CIE-LCHlch(25.93, 39.67, 326.65°)
OKLaboklab(37.54% 0.0918 -0.0601)
OKLCHoklch(37.54% 0.11 326.8)
XYZxyz(7.4403, 4.7239, 11.3442)
Luminance0.0472 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E285F #295F28
analogous
#43285F #5E285F #5F2845
triadic
#5E285F #5F5E28 #285F5E
tetradic
#5E285F #5F4328 #295F28 #28455F
square
#5E285F #5F4328 #295F28 #28455F
split-complementary
#5E285F #455F28 #285F43
monochromatic
#150916 #331634 #5E285F #893A8A #B24DB4

Accessibility & contrast

On white

10.80
#5E285F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5E285F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E285F
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E285F#FFFFFF#000000##FFFFFF
##5E285F1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223961
Deuteranopia (green-blind)
#33405D
Tritanopia (blue-blind)
#612E3F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e285f;
/* rgb */ color: rgb(94, 40, 95);
/* oklch */ color: oklch(37.5% 0.110 326.8);
Tailwind
colors: {
  custom: {
    50: '#8d658c',
    500: '#5e285f',
    950: '#000000',
  },
}
SCSS
$custom: #5e285f;
$custom-light: #8d658c;
$custom-dark: #000000;
JSON
{
  "hex": "#5e285f",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 95
  },
  "hsl": {
    "h": 298.909,
    "s": 40.741,
    "l": 26.471
  },
  "oklch": {
    "l": 0.37536,
    "c": 0.10966,
    "h": 326.8
  },
  "luminance": 0.04723
}

Semantic roles & 50–950 ramp

primary
#5E285F
secondary
#529251
accent
#D15759
background
#F8F6F8
surface
#F0EBF0
border
#CBC6CB
text
#0C060C
muted
#7D7A7D

Preview Lab

Preview with #5E285F

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

Preview Lab → · Contrast checker → · Palette generator →

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