#5B229C#5B229C

#5B229C is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.182 H 299.2°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#5B229C
RGBrgb(91, 34, 156)
HSLhsl(268, 64%, 37%)
HSVhsv(268, 78%, 61%)
CMYKcmyk(41.7%, 78.2%, 0%, 38.8%)
CIE-LABlab(28.82, 49.62, -55.68)
CIE-LCHlch(28.82, 74.58, 311.71°)
OKLaboklab(40.89% 0.0889 -0.1592)
OKLCHoklch(40.89% 0.182 299.2)
XYZxyz(10.8856, 5.7684, 31.9859)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B229C #639C22
analogous
#22269C #5B229C #98229C
triadic
#5B229C #9C5B22 #229C5B
tetradic
#5B229C #9C2226 #639C22 #229C98
square
#5B229C #9C2226 #639C22 #229C98
split-complementary
#5B229C #9C9822 #269C22
monochromatic
#200C38 #3E176A #5B229C #782DCE #985DDC

Accessibility & contrast

On white

9.75
#5B229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5B229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B229C
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B229C#FFFFFF#000000##FFFFFF
##5B229C1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#4B435E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b229c;
/* rgb */ color: rgb(91, 34, 156);
/* oklch */ color: oklch(40.9% 0.182 299.2);
Tailwind
colors: {
  custom: {
    50: '#9064ba',
    500: '#5b229c',
    950: '#000000',
  },
}
SCSS
$custom: #5b229c;
$custom-light: #9064ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5b229c",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 268.033,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4089,
    "c": 0.18236,
    "h": 299.2
  },
  "luminance": 0.05769
}

Semantic roles & 50–950 ramp

primary
#5B229C
secondary
#90C05A
accent
#E74199
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B229C

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

Preview Lab → · Contrast checker → · Palette generator →

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