#5C2292#5C2292

#5C2292 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.172 H 302.7°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#5C2292
RGBrgb(92, 34, 146)
HSLhsl(271, 62%, 35%)
HSVhsv(271, 77%, 57%)
CMYKcmyk(37%, 76.7%, 0%, 42.7%)
CIE-LABlab(28.10, 47.31, -50.71)
CIE-LCHlch(28.10, 69.35, 313.01°)
OKLaboklab(40.15% 0.093 -0.1446)
OKLCHoklch(40.15% 0.172 302.7)
XYZxyz(10.1727, 5.4947, 27.7132)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2292 #589222
analogous
#242292 #5C2292 #922290
triadic
#5C2292 #925C22 #22925C
tetradic
#5C2292 #922422 #589222 #229092
square
#5C2292 #922422 #589222 #229092
split-complementary
#5C2292 #909222 #229224
monochromatic
#1D0B2F #3D1660 #5C2292 #7B2EC4 #9A57D8

Accessibility & contrast

On white

10.00
#5C2292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5C2292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2292
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2292#FFFFFF#000000##FFFFFF
##5C22921.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004195
Deuteranopia (green-blind)
#004290
Tritanopia (blue-blind)
#513E59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c2292;
/* rgb */ color: rgb(92, 34, 146);
/* oklch */ color: oklch(40.1% 0.172 302.7);
Tailwind
colors: {
  custom: {
    50: '#8f63b3',
    500: '#5c2292',
    950: '#000000',
  },
}
SCSS
$custom: #5c2292;
$custom-light: #8f63b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2292",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 271.071,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40149,
    "c": 0.17192,
    "h": 302.7
  },
  "luminance": 0.05495
}

Semantic roles & 50–950 ramp

primary
#5C2292
secondary
#86BC54
accent
#E54391
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2292

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

Preview Lab → · Contrast checker → · Palette generator →

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