#5E226F#5E226F

#5E226F is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.7% C 0.136 H 318.0°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#5E226F
RGBrgb(94, 34, 111)
HSLhsl(287, 53%, 28%)
HSVhsv(287, 69%, 44%)
CMYKcmyk(15.3%, 69.4%, 0%, 56.5%)
CIE-LABlab(25.78, 39.56, -32.43)
CIE-LCHlch(25.78, 51.15, 320.66°)
OKLaboklab(37.73% 0.1009 -0.0908)
OKLCHoklch(37.73% 0.136 318)
XYZxyz(8.0570, 4.6718, 15.5132)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E226F #336F22
analogous
#37226F #5E226F #6F2259
triadic
#5E226F #6F5E22 #226F5E
tetradic
#5E226F #6F3722 #336F22 #22596F
square
#5E226F #6F3722 #336F22 #22596F
split-complementary
#5E226F #596F22 #226F37
monochromatic
#140717 #361440 #5E226F #86309E #AA45C6

Accessibility & contrast

On white

10.86
#5E226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5E226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E226F
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E226F#FFFFFF#000000##FFFFFF
##5E226F1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043971
Deuteranopia (green-blind)
#253F6D
Tritanopia (blue-blind)
#5E3045
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e226f;
/* rgb */ color: rgb(94, 34, 111);
/* oklch */ color: oklch(37.7% 0.136 318.0);
Tailwind
colors: {
  custom: {
    50: '#8e6299',
    500: '#5e226f',
    950: '#000000',
  },
}
SCSS
$custom: #5e226f;
$custom-light: #8e6299;
$custom-dark: #000000;
JSON
{
  "hex": "#5e226f",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 286.753,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37733,
    "c": 0.13574,
    "h": 318
  },
  "luminance": 0.04671
}

Semantic roles & 50–950 ramp

primary
#5E226F
secondary
#5EA24A
accent
#DD4B6B
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D050E
muted
#7D7A7E

Preview Lab

Preview with #5E226F

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

Preview Lab → · Contrast checker → · Palette generator →

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