#5E1255#5E1255

#5E1255 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.133 H 333.5°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#5E1255
RGBrgb(94, 18, 85)
HSLhsl(307, 68%, 22%)
HSVhsv(307, 81%, 37%)
CMYKcmyk(0%, 80.9%, 9.6%, 63.1%)
CIE-LABlab(21.83, 41.11, -21.64)
CIE-LCHlch(21.83, 46.46, 332.24°)
OKLaboklab(34.38% 0.119 -0.0594)
OKLCHoklch(34.38% 0.133 333.5)
XYZxyz(6.4721, 3.4687, 8.9212)
Luminance0.0347 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1255 #125E1B
analogous
#41125E #5E1255 #5E122F
triadic
#5E1255 #555E12 #12555E
tetradic
#5E1255 #5E4112 #125E1B #122F5E
square
#5E1255 #5E4112 #125E1B #122F5E
split-complementary
#5E1255 #2F5E12 #125E41
monochromatic
#1A0517 #2B0827 #5E1255 #911C83 #C526B2

Accessibility & contrast

On white

12.40
#5E1255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5E1255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1255
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1255#FFFFFF#000000##FFFFFF
##5E12551.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2D57
Deuteranopia (green-blind)
#2C3853
Tritanopia (blue-blind)
#631A32
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5e1255;
/* rgb */ color: rgb(94, 18, 85);
/* oklch */ color: oklch(34.4% 0.133 333.5);
Tailwind
colors: {
  custom: {
    50: '#8f5a85',
    500: '#5e1255',
    950: '#000000',
  },
}
SCSS
$custom: #5e1255;
$custom-light: #8f5a85;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1255",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 307.105,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34376,
    "c": 0.13299,
    "h": 333.5
  },
  "luminance": 0.03468
}

Semantic roles & 50–950 ramp

primary
#5E1255
secondary
#359641
accent
#EB523D
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5E1255

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

Preview Lab → · Contrast checker → · Palette generator →

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