#5E257A#5E257A

#5E257A is a dark, vivid purple. Relative luminance 0.051; OKLCH L 38.9% C 0.143 H 312.5°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#5E257A
RGBrgb(94, 37, 122)
HSLhsl(280, 53%, 31%)
HSVhsv(280, 70%, 48%)
CMYKcmyk(23%, 69.7%, 0%, 52.2%)
CIE-LABlab(27.04, 40.59, -37.42)
CIE-LCHlch(27.04, 55.21, 317.33°)
OKLaboklab(38.88% 0.0965 -0.1055)
OKLCHoklch(38.88% 0.143 312.5)
XYZxyz(8.7899, 5.1082, 18.9315)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E257A #417A25
analogous
#33257A #5E257A #7A256B
triadic
#5E257A #7A5E25 #257A5E
tetradic
#5E257A #7A3325 #417A25 #256B7A
square
#5E257A #7A3325 #417A25 #256B7A
split-complementary
#5E257A #6B7A25 #257A33
monochromatic
#16091C #3A174B #5E257A #8233A9 #A250CA

Accessibility & contrast

On white

10.39
#5E257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5E257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E257A
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E257A#FFFFFF#000000##FFFFFF
##5E257A1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#1E4178
Tritanopia (blue-blind)
#5B364C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e257a;
/* rgb */ color: rgb(94, 37, 122);
/* oklch */ color: oklch(38.9% 0.143 312.5);
Tailwind
colors: {
  custom: {
    50: '#8f64a1',
    500: '#5e257a',
    950: '#000000',
  },
}
SCSS
$custom: #5e257a;
$custom-light: #8f64a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e257a",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 280.235,
    "s": 53.459,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38878,
    "c": 0.143,
    "h": 312.5
  },
  "luminance": 0.05108
}

Semantic roles & 50–950 ramp

primary
#5E257A
secondary
#6DAC4E
accent
#DD4B7B
background
#F9F6FA
surface
#F1EBF3
border
#CBC6CD
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5E257A

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

Preview Lab → · Contrast checker → · Palette generator →

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