#5E256B#5E256B

#5E256B is a dark, vivid purple. Relative luminance 0.048; OKLCH L 37.8% C 0.127 H 319.8°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#5E256B
RGBrgb(94, 37, 107)
HSLhsl(289, 49%, 28%)
HSVhsv(289, 65%, 42%)
CMYKcmyk(12.1%, 65.4%, 0%, 58%)
CIE-LABlab(26.05, 37.23, -29.41)
CIE-LCHlch(26.05, 47.44, 321.69°)
OKLaboklab(37.85% 0.097 -0.0821)
OKLCHoklch(37.85% 0.127 319.8)
XYZxyz(7.9312, 4.7647, 14.4090)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E256B #326B25
analogous
#3B256B #5E256B #6B2555
triadic
#5E256B #6B5E25 #256B5E
tetradic
#5E256B #6B3B25 #326B25 #25556B
square
#5E256B #6B3B25 #326B25 #25556B
split-complementary
#5E256B #556B25 #256B3B
monochromatic
#140817 #36153E #5E256B #863598 #AA4AC0

Accessibility & contrast

On white

10.75
#5E256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5E256B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E256B
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E256B#FFFFFF#000000##FFFFFF
##5E256B1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133A6D
Deuteranopia (green-blind)
#2A4069
Tritanopia (blue-blind)
#5E3144
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e256b;
/* rgb */ color: rgb(94, 37, 107);
/* oklch */ color: oklch(37.8% 0.127 319.8);
Tailwind
colors: {
  custom: {
    50: '#8e6496',
    500: '#5e256b',
    950: '#000000',
  },
}
SCSS
$custom: #5e256b;
$custom-light: #8e6496;
$custom-dark: #000000;
JSON
{
  "hex": "#5e256b",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 288.857,
    "s": 48.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37849,
    "c": 0.12705,
    "h": 319.8
  },
  "luminance": 0.04764
}

Semantic roles & 50–950 ramp

primary
#5E256B
secondary
#5D9E4E
accent
#D85069
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5E256B

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

Preview Lab → · Contrast checker → · Palette generator →

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