#5B229D#5B229D

#5B229D is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.183 H 298.9°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#5B229D
RGBrgb(91, 34, 157)
HSLhsl(268, 64%, 37%)
HSVhsv(268, 78%, 62%)
CMYKcmyk(42%, 78.3%, 0%, 38.4%)
CIE-LABlab(28.91, 49.88, -56.14)
CIE-LCHlch(28.91, 75.10, 311.62°)
OKLaboklab(40.98% 0.0886 -0.1606)
OKLCHoklch(40.98% 0.183 298.9)
XYZxyz(10.9707, 5.8024, 32.4337)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B229D #649D22
analogous
#22269D #5B229D #99229D
triadic
#5B229D #9D5B22 #229D5B
tetradic
#5B229D #9D2226 #649D22 #229D99
square
#5B229D #9D2226 #649D22 #229D99
split-complementary
#5B229D #9D9922 #269D22
monochromatic
#210C38 #3E176B #5B229D #782DCF #985DDC

Accessibility & contrast

On white

9.72
#5B229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5B229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B229D
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B229D#FFFFFF#000000##FFFFFF
##5B229D1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#4B435F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b229d;
/* rgb */ color: rgb(91, 34, 157);
/* oklch */ color: oklch(41.0% 0.183 298.9);
Tailwind
colors: {
  custom: {
    50: '#9064bb',
    500: '#5b229d',
    950: '#000000',
  },
}
SCSS
$custom: #5b229d;
$custom-light: #9064bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b229d",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 267.805,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40979,
    "c": 0.18342,
    "h": 298.9
  },
  "luminance": 0.05803
}

Semantic roles & 50–950 ramp

primary
#5B229D
secondary
#91C15A
accent
#E7409A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B229D

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

Preview Lab → · Contrast checker → · Palette generator →

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