#5C226F#5C226F

#5C226F is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.4% C 0.135 H 316.7°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#5C226F
RGBrgb(92, 34, 111)
HSLhsl(285, 53%, 28%)
HSVhsv(285, 69%, 44%)
CMYKcmyk(17.1%, 69.4%, 0%, 56.5%)
CIE-LABlab(25.46, 39.06, -32.95)
CIE-LCHlch(25.46, 51.10, 319.85°)
OKLaboklab(37.44% 0.0982 -0.0924)
OKLCHoklch(37.44% 0.135 316.7)
XYZxyz(7.8545, 4.5674, 15.5037)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C226F #356F22
analogous
#35226F #5C226F #6F225B
triadic
#5C226F #6F5C22 #226F5C
tetradic
#5C226F #6F3522 #356F22 #225B6F
square
#5C226F #6F3522 #356F22 #225B6F
split-complementary
#5C226F #5B6F22 #226F35
monochromatic
#130717 #351440 #5C226F #83309E #A645C6

Accessibility & contrast

On white

10.98
#5C226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5C226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C226F
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C226F#FFFFFF#000000##FFFFFF
##5C226F1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023971
Deuteranopia (green-blind)
#233E6D
Tritanopia (blue-blind)
#5B3045
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c226f;
/* rgb */ color: rgb(92, 34, 111);
/* oklch */ color: oklch(37.4% 0.135 316.7);
Tailwind
colors: {
  custom: {
    50: '#8d6299',
    500: '#5c226f',
    950: '#000000',
  },
}
SCSS
$custom: #5c226f;
$custom-light: #8d6299;
$custom-dark: #000000;
JSON
{
  "hex": "#5c226f",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 285.195,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37443,
    "c": 0.13483,
    "h": 316.7
  },
  "luminance": 0.04567
}

Semantic roles & 50–950 ramp

primary
#5C226F
secondary
#60A24A
accent
#DD4B6F
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5C226F

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

Preview Lab → · Contrast checker → · Palette generator →

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