#5B229F#5B229F

#5B229F is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.186 H 298.3°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#5B229F
RGBrgb(91, 34, 159)
HSLhsl(267, 65%, 38%)
HSVhsv(267, 79%, 62%)
CMYKcmyk(42.8%, 78.6%, 0%, 37.6%)
CIE-LABlab(29.09, 50.38, -57.07)
CIE-LCHlch(29.09, 76.13, 311.44°)
OKLaboklab(41.16% 0.0881 -0.1633)
OKLCHoklch(41.16% 0.186 298.3)
XYZxyz(11.1428, 5.8712, 33.3404)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B229F #669F22
analogous
#22279F #5B229F #99229F
triadic
#5B229F #9F5B22 #229F5B
tetradic
#5B229F #9F2227 #669F22 #229F99
square
#5B229F #9F2227 #669F22 #229F99
split-complementary
#5B229F #9F9922 #279F22
monochromatic
#210C3A #3E176D #5B229F #782DD1 #985FDD

Accessibility & contrast

On white

9.66
#5B229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B229F
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B229F#FFFFFF#000000##FFFFFF
##5B229F1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#4A4460
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b229f;
/* rgb */ color: rgb(91, 34, 159);
/* oklch */ color: oklch(41.2% 0.186 298.3);
Tailwind
colors: {
  custom: {
    50: '#9064bc',
    500: '#5b229f',
    950: '#000000',
  },
}
SCSS
$custom: #5b229f;
$custom-light: #9064bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b229f",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 267.36,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41157,
    "c": 0.18554,
    "h": 298.3
  },
  "luminance": 0.05871
}

Semantic roles & 50–950 ramp

primary
#5B229F
secondary
#93C15B
accent
#E8409B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B229F

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

Preview Lab → · Contrast checker → · Palette generator →

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