#5C229B#5C229B

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

Color values

HEX#5C229B
RGBrgb(92, 34, 155)
HSLhsl(269, 64%, 37%)
HSVhsv(269, 78%, 61%)
CMYKcmyk(40.6%, 78.1%, 0%, 39.2%)
CIE-LABlab(28.87, 49.54, -54.99)
CIE-LCHlch(28.87, 74.01, 312.02°)
OKLaboklab(40.92% 0.0907 -0.1572)
OKLCHoklch(40.92% 0.181 300)
XYZxyz(10.9006, 5.7858, 31.5465)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C229B #619B22
analogous
#22259B #5C229B #98229B
triadic
#5C229B #9B5C22 #229B5C
tetradic
#5C229B #9B2225 #619B22 #229B98
square
#5C229B #9B2225 #619B22 #229B98
split-complementary
#5C229B #9B9822 #259B22
monochromatic
#200C37 #3E1769 #5C229B #7A2DCD #995CDB

Accessibility & contrast

On white

9.73
#5C229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C229B
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C229B#FFFFFF#000000##FFFFFF
##5C229B1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#4D425E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5c229b;
/* rgb */ color: rgb(92, 34, 155);
/* oklch */ color: oklch(40.9% 0.181 300.0);
Tailwind
colors: {
  custom: {
    50: '#9064b9',
    500: '#5c229b',
    950: '#000000',
  },
}
SCSS
$custom: #5c229b;
$custom-light: #9064b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c229b",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 268.76,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40924,
    "c": 0.18144,
    "h": 300
  },
  "luminance": 0.05786
}

Semantic roles & 50–950 ramp

primary
#5C229B
secondary
#8FC059
accent
#E74197
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C229B

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

Preview Lab → · Contrast checker → · Palette generator →

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