#5E2287#5E2287

#5E2287 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.161 H 307.6°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#5E2287
RGBrgb(94, 34, 135)
HSLhsl(276, 60%, 33%)
HSVhsv(276, 75%, 53%)
CMYKcmyk(30.4%, 74.8%, 0%, 47.1%)
CIE-LABlab(27.50, 45.04, -44.85)
CIE-LCHlch(27.50, 63.56, 315.12°)
OKLaboklab(39.51% 0.0982 -0.1273)
OKLCHoklch(39.51% 0.161 307.6)
XYZxyz(9.5604, 5.2731, 23.4311)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2287 #4B8722
analogous
#2C2287 #5E2287 #87227D
triadic
#5E2287 #875E22 #22875E
tetradic
#5E2287 #872C22 #4B8722 #227D87
square
#5E2287 #872C22 #4B8722 #227D87
split-complementary
#5E2287 #7D8722 #22872C
monochromatic
#1A0925 #3C1656 #5E2287 #802EB8 #9E50D3

Accessibility & contrast

On white

10.22
#5E2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5E2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2287
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2287#FFFFFF#000000##FFFFFF
##5E22871.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#573A52
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e2287;
/* rgb */ color: rgb(94, 34, 135);
/* oklch */ color: oklch(39.5% 0.161 307.6);
Tailwind
colors: {
  custom: {
    50: '#9063ab',
    500: '#5e2287',
    950: '#000000',
  },
}
SCSS
$custom: #5e2287;
$custom-light: #9063ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2287",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 275.644,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39508,
    "c": 0.16078,
    "h": 307.6
  },
  "luminance": 0.05273
}

Semantic roles & 50–950 ramp

primary
#5E2287
secondary
#79B74E
accent
#E34585
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2287

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

Preview Lab → · Contrast checker → · Palette generator →

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