#5E226A#5E226A

#5E226A is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.4% C 0.131 H 320.6°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#5E226A
RGBrgb(94, 34, 106)
HSLhsl(290, 51%, 27%)
HSVhsv(290, 68%, 42%)
CMYKcmyk(11.3%, 67.9%, 0%, 58.4%)
CIE-LABlab(25.46, 38.49, -29.72)
CIE-LCHlch(25.46, 48.63, 322.33°)
OKLaboklab(37.4% 0.1009 -0.0829)
OKLCHoklch(37.4% 0.131 320.6)
XYZxyz(7.7893, 4.5647, 14.1037)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E226A #2E6A22
analogous
#3A226A #5E226A #6A2252
triadic
#5E226A #6A5E22 #226A5E
tetradic
#5E226A #6A3A22 #2E6A22 #22526A
square
#5E226A #6A3A22 #2E6A22 #22526A
split-complementary
#5E226A #526A22 #226A3A
monochromatic
#150717 #35133C #5E226A #873198 #AE44C3

Accessibility & contrast

On white

10.98
#5E226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5E226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E226A
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E226A#FFFFFF#000000##FFFFFF
##5E226A1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E386C
Deuteranopia (green-blind)
#293F68
Tritanopia (blue-blind)
#5F2E43
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e226a;
/* rgb */ color: rgb(94, 34, 106);
/* oklch */ color: oklch(37.4% 0.131 320.6);
Tailwind
colors: {
  custom: {
    50: '#8e6295',
    500: '#5e226a',
    950: '#000000',
  },
}
SCSS
$custom: #5e226a;
$custom-light: #8e6295;
$custom-dark: #000000;
JSON
{
  "hex": "#5e226a",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 290,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.37397,
    "c": 0.13063,
    "h": 320.6
  },
  "luminance": 0.04564
}

Semantic roles & 50–950 ramp

primary
#5E226A
secondary
#589E4A
accent
#DB4D65
background
#F8F6F9
surface
#F0EBF1
border
#CBC6CB
text
#0D050D
muted
#7D7A7E

Preview Lab

Preview with #5E226A

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

Preview Lab → · Contrast checker → · Palette generator →

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