#5B229A#5B229A

#5B229A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.180 H 299.8°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#5B229A
RGBrgb(91, 34, 154)
HSLhsl(269, 64%, 37%)
HSVhsv(269, 78%, 60%)
CMYKcmyk(40.9%, 77.9%, 0%, 39.6%)
CIE-LABlab(28.65, 49.12, -54.74)
CIE-LCHlch(28.65, 73.55, 311.90°)
OKLaboklab(40.71% 0.0895 -0.1565)
OKLCHoklch(40.71% 0.18 299.8)
XYZxyz(10.7177, 5.7012, 31.1014)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B229A #619A22
analogous
#22259A #5B229A #97229A
triadic
#5B229A #9A5B22 #229A5B
tetradic
#5B229A #9A2225 #619A22 #229A97
square
#5B229A #9A2225 #619A22 #229A97
split-complementary
#5B229A #9A9722 #259A22
monochromatic
#200C36 #3D1768 #5B229A #792DCC #985BDB

Accessibility & contrast

On white

9.81
#5B229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5B229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B229A
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B229A#FFFFFF#000000##FFFFFF
##5B229A1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#4C425D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b229a;
/* rgb */ color: rgb(91, 34, 154);
/* oklch */ color: oklch(40.7% 0.180 299.8);
Tailwind
colors: {
  custom: {
    50: '#9064b9',
    500: '#5b229a',
    950: '#000000',
  },
}
SCSS
$custom: #5b229a;
$custom-light: #9064b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b229a",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 268.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40714,
    "c": 0.18023,
    "h": 299.8
  },
  "luminance": 0.05701
}

Semantic roles & 50–950 ramp

primary
#5B229A
secondary
#8EBF58
accent
#E74198
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B229A

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

Preview Lab → · Contrast checker → · Palette generator →

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