#5C229F#5C229F

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

Color values

HEX#5C229F
RGBrgb(92, 34, 159)
HSLhsl(268, 65%, 38%)
HSVhsv(268, 79%, 62%)
CMYKcmyk(42.1%, 78.6%, 0%, 37.6%)
CIE-LABlab(29.22, 50.54, -56.85)
CIE-LCHlch(29.22, 76.07, 311.64°)
OKLaboklab(41.28% 0.0896 -0.1626)
OKLCHoklch(41.28% 0.186 298.8)
XYZxyz(11.2421, 5.9224, 33.3450)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C229F #659F22
analogous
#22269F #5C229F #9A229F
triadic
#5C229F #9F5C22 #229F5C
tetradic
#5C229F #9F2226 #659F22 #229F9A
square
#5C229F #9F2226 #659F22 #229F9A
split-complementary
#5C229F #9F9A22 #269F22
monochromatic
#220C3A #3F176D #5C229F #792DD1 #995FDD

Accessibility & contrast

On white

9.61
#5C229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5C229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C229F
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C229F#FFFFFF#000000##FFFFFF
##5C229F1.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c229f;
/* rgb */ color: rgb(92, 34, 159);
/* oklch */ color: oklch(41.3% 0.186 298.8);
Tailwind
colors: {
  custom: {
    50: '#9164bc',
    500: '#5c229f',
    950: '#000000',
  },
}
SCSS
$custom: #5c229f;
$custom-light: #9164bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c229f",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 267.84,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41277,
    "c": 0.18566,
    "h": 298.8
  },
  "luminance": 0.05923
}

Semantic roles & 50–950 ramp

primary
#5C229F
secondary
#92C15B
accent
#E8409A
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C229F

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

Preview Lab → · Contrast checker → · Palette generator →

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