#5E229A#5E229A

#5E229A is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.181 H 301.3°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#5E229A
RGBrgb(94, 34, 154)
HSLhsl(270, 64%, 37%)
HSVhsv(270, 78%, 60%)
CMYKcmyk(39%, 77.9%, 0%, 39.6%)
CIE-LABlab(29.05, 49.63, -54.07)
CIE-LCHlch(29.05, 73.39, 312.55°)
OKLaboklab(41.08% 0.094 -0.1544)
OKLCHoklch(41.08% 0.181 301.3)
XYZxyz(11.0194, 5.8568, 31.1155)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E229A #5E9A22
analogous
#22229A #5E229A #9A229A
triadic
#5E229A #9A5E22 #229A5E
tetradic
#5E229A #9A2222 #5E9A22 #229A9A
square
#5E229A #9A2222 #5E9A22 #229A9A
split-complementary
#5E229A #9A9A22 #229A22
monochromatic
#210C36 #3F1768 #5E229A #7D2DCC #9B5BDB

Accessibility & contrast

On white

9.67
#5E229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5E229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E229A
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E229A#FFFFFF#000000##FFFFFF
##5E229A1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#51425D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e229a;
/* rgb */ color: rgb(94, 34, 154);
/* oklch */ color: oklch(41.1% 0.181 301.3);
Tailwind
colors: {
  custom: {
    50: '#9264b9',
    500: '#5e229a',
    950: '#000000',
  },
}
SCSS
$custom: #5e229a;
$custom-light: #9264b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e229a",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 270,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41083,
    "c": 0.18073,
    "h": 301.3
  },
  "luminance": 0.05857
}

Semantic roles & 50–950 ramp

primary
#5E229A
secondary
#8CBF58
accent
#E74194
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #5E229A

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

Preview Lab → · Contrast checker → · Palette generator →

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