#5C2293#5C2293

#5C2293 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.173 H 302.4°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#5C2293
RGBrgb(92, 34, 147)
HSLhsl(271, 62%, 35%)
HSVhsv(271, 77%, 58%)
CMYKcmyk(37.4%, 76.9%, 0%, 42.4%)
CIE-LABlab(28.18, 47.55, -51.19)
CIE-LCHlch(28.18, 69.87, 312.89°)
OKLaboklab(40.23% 0.0927 -0.146)
OKLCHoklch(40.23% 0.173 302.4)
XYZxyz(10.2509, 5.5259, 28.1247)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2293 #599322
analogous
#232293 #5C2293 #932292
triadic
#5C2293 #935C22 #22935C
tetradic
#5C2293 #932322 #599322 #229293
square
#5C2293 #932322 #599322 #229293
split-complementary
#5C2293 #929322 #229323
monochromatic
#1E0B30 #3D1761 #5C2293 #7B2DC5 #9957D8

Accessibility & contrast

On white

9.98
#5C2293 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5C2293 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2293
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2293#FFFFFF#000000##FFFFFF
##5C22931.009.982.119.98
#FFFFFF9.981.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004296
Deuteranopia (green-blind)
#004291
Tritanopia (blue-blind)
#503F59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c2293;
/* rgb */ color: rgb(92, 34, 147);
/* oklch */ color: oklch(40.2% 0.173 302.4);
Tailwind
colors: {
  custom: {
    50: '#9064b4',
    500: '#5c2293',
    950: '#000000',
  },
}
SCSS
$custom: #5c2293;
$custom-light: #9064b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2293",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 147
  },
  "hsl": {
    "h": 270.796,
    "s": 62.431,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40234,
    "c": 0.17298,
    "h": 302.4
  },
  "luminance": 0.05526
}

Semantic roles & 50–950 ramp

primary
#5C2293
secondary
#87BC55
accent
#E54292
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2293

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

Preview Lab → · Contrast checker → · Palette generator →

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