#5C229E#5C229E

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

Color values

HEX#5C229E
RGBrgb(92, 34, 158)
HSLhsl(268, 65%, 38%)
HSVhsv(268, 78%, 62%)
CMYKcmyk(41.8%, 78.5%, 0%, 38%)
CIE-LABlab(29.13, 50.29, -56.39)
CIE-LCHlch(29.13, 75.56, 311.73°)
OKLaboklab(41.19% 0.0899 -0.1613)
OKLCHoklch(41.19% 0.185 299.1)
XYZxyz(11.1556, 5.8878, 32.8898)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C229E #649E22
analogous
#22269E #5C229E #9A229E
triadic
#5C229E #9E5C22 #229E5C
tetradic
#5C229E #9E2226 #649E22 #229E9A
square
#5C229E #9E2226 #649E22 #229E9A
split-complementary
#5C229E #9E9A22 #269E22
monochromatic
#210C39 #3F176C #5C229E #792DD0 #995EDC

Accessibility & contrast

On white

9.64
#5C229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C229E
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C229E#FFFFFF#000000##FFFFFF
##5C229E1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#4C445F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5c229e;
/* rgb */ color: rgb(92, 34, 158);
/* oklch */ color: oklch(41.2% 0.185 299.1);
Tailwind
colors: {
  custom: {
    50: '#9164bc',
    500: '#5c229e',
    950: '#000000',
  },
}
SCSS
$custom: #5c229e;
$custom-light: #9164bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c229e",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 268.065,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41188,
    "c": 0.18462,
    "h": 299.1
  },
  "luminance": 0.05888
}

Semantic roles & 50–950 ramp

primary
#5C229E
secondary
#91C15B
accent
#E84099
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C229E

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

Preview Lab → · Contrast checker → · Palette generator →

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