#5C229D#5C229D

#5C229D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.184 H 299.4°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#5C229D
RGBrgb(92, 34, 157)
HSLhsl(268, 64%, 37%)
HSVhsv(268, 78%, 62%)
CMYKcmyk(41.4%, 78.3%, 0%, 38.4%)
CIE-LABlab(29.04, 50.04, -55.92)
CIE-LCHlch(29.04, 75.04, 311.82°)
OKLaboklab(41.1% 0.0901 -0.1599)
OKLCHoklch(41.1% 0.184 299.4)
XYZxyz(11.0699, 5.8535, 32.4384)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C229D #639D22
analogous
#22259D #5C229D #9A229D
triadic
#5C229D #9D5C22 #229D5C
tetradic
#5C229D #9D2225 #639D22 #229D9A
square
#5C229D #9D2225 #639D22 #229D9A
split-complementary
#5C229D #9D9A22 #259D22
monochromatic
#210C38 #3F176B #5C229D #792DCF #995DDC

Accessibility & contrast

On white

9.67
#5C229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C229D
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C229D#FFFFFF#000000##FFFFFF
##5C229D1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c229d;
/* rgb */ color: rgb(92, 34, 157);
/* oklch */ color: oklch(41.1% 0.184 299.4);
Tailwind
colors: {
  custom: {
    50: '#9164bb',
    500: '#5c229d',
    950: '#000000',
  },
}
SCSS
$custom: #5c229d;
$custom-light: #9164bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5c229d",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 268.293,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.411,
    "c": 0.18357,
    "h": 299.4
  },
  "luminance": 0.05854
}

Semantic roles & 50–950 ramp

primary
#5C229D
secondary
#90C15A
accent
#E74099
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C229D

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

Preview Lab → · Contrast checker → · Palette generator →

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