#5E2168#5E2168

#5E2168 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.1% C 0.130 H 321.8°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#5E2168
RGBrgb(94, 33, 104)
HSLhsl(292, 52%, 27%)
HSVhsv(292, 68%, 41%)
CMYKcmyk(9.6%, 68.3%, 0%, 59.2%)
CIE-LABlab(25.16, 38.55, -28.89)
CIE-LCHlch(25.16, 48.17, 323.14°)
OKLaboklab(37.14% 0.1022 -0.0805)
OKLCHoklch(37.14% 0.13 321.8)
XYZxyz(7.6584, 4.4673, 13.5529)
Luminance0.0447 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2168 #2B6821
analogous
#3B2168 #5E2168 #68214F
triadic
#5E2168 #685E21 #21685E
tetradic
#5E2168 #683B21 #2B6821 #214F68
square
#5E2168 #683B21 #2B6821 #214F68
split-complementary
#5E2168 #4F6821 #21683B
monochromatic
#150717 #34123A #5E2168 #883096 #B041C3

Accessibility & contrast

On white

11.09
#5E2168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5E2168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2168
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2168#FFFFFF#000000##FFFFFF
##5E21681.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F376A
Deuteranopia (green-blind)
#293E66
Tritanopia (blue-blind)
#5F2D41
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e2168;
/* rgb */ color: rgb(94, 33, 104);
/* oklch */ color: oklch(37.1% 0.130 321.8);
Tailwind
colors: {
  custom: {
    50: '#8e6193',
    500: '#5e2168',
    950: '#000000',
  },
}
SCSS
$custom: #5e2168;
$custom-light: #8e6193;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2168",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 291.549,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.37142,
    "c": 0.13012,
    "h": 321.8
  },
  "luminance": 0.04467
}

Semantic roles & 50–950 ramp

primary
#5E2168
secondary
#559C49
accent
#DB4D61
background
#F8F5F9
surface
#F0EAF1
border
#CBC6CB
text
#0D050D
muted
#7D797E

Preview Lab

Preview with #5E2168

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

Preview Lab → · Contrast checker → · Palette generator →

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