#5E256C#5E256C

#5E256C is a dark, vivid purple. Relative luminance 0.048; OKLCH L 37.9% C 0.128 H 319.2°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#5E256C
RGBrgb(94, 37, 108)
HSLhsl(288, 49%, 28%)
HSVhsv(288, 66%, 42%)
CMYKcmyk(13%, 65.7%, 0%, 57.6%)
CIE-LABlab(26.12, 37.44, -29.96)
CIE-LCHlch(26.12, 47.95, 321.34°)
OKLaboklab(37.91% 0.097 -0.0837)
OKLCHoklch(37.91% 0.128 319.2)
XYZxyz(7.9841, 4.7859, 14.6877)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E256C #336C25
analogous
#3A256C #5E256C #6C2556
triadic
#5E256C #6C5E25 #256C5E
tetradic
#5E256C #6C3A25 #336C25 #25566C
square
#5E256C #6C3A25 #336C25 #25566C
split-complementary
#5E256C #566C25 #256C3A
monochromatic
#140817 #36153E #5E256C #86359A #AA4AC1

Accessibility & contrast

On white

10.73
#5E256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5E256C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E256C
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E256C#FFFFFF#000000##FFFFFF
##5E256C1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113A6E
Deuteranopia (green-blind)
#2A406A
Tritanopia (blue-blind)
#5E3145
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e256c;
/* rgb */ color: rgb(94, 37, 108);
/* oklch */ color: oklch(37.9% 0.128 319.2);
Tailwind
colors: {
  custom: {
    50: '#8e6496',
    500: '#5e256c',
    950: '#000000',
  },
}
SCSS
$custom: #5e256c;
$custom-light: #8e6496;
$custom-dark: #000000;
JSON
{
  "hex": "#5e256c",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 288.169,
    "s": 48.966,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37914,
    "c": 0.1281,
    "h": 319.2
  },
  "luminance": 0.04786
}

Semantic roles & 50–950 ramp

primary
#5E256C
secondary
#5E9F4E
accent
#D94F6A
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5E256C

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

Preview Lab → · Contrast checker → · Palette generator →

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