#5C2295#5C2295

#5C2295 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.175 H 301.8°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#5C2295
RGBrgb(92, 34, 149)
HSLhsl(270, 63%, 36%)
HSVhsv(270, 77%, 58%)
CMYKcmyk(38.3%, 77.2%, 0%, 41.6%)
CIE-LABlab(28.35, 48.05, -52.15)
CIE-LCHlch(28.35, 70.91, 312.66°)
OKLaboklab(40.4% 0.0922 -0.1488)
OKLCHoklch(40.4% 0.175 301.8)
XYZxyz(10.4092, 5.5892, 28.9584)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2295 #5B9522
analogous
#222295 #5C2295 #952294
triadic
#5C2295 #955C22 #22955C
tetradic
#5C2295 #952222 #5B9522 #229495
square
#5C2295 #952222 #5B9522 #229495
split-complementary
#5C2295 #949522 #229522
monochromatic
#1E0B31 #3D1763 #5C2295 #7B2DC7 #9958D9

Accessibility & contrast

On white

9.92
#5C2295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5C2295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2295
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2295#FFFFFF#000000##FFFFFF
##5C22951.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#50405A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5c2295;
/* rgb */ color: rgb(92, 34, 149);
/* oklch */ color: oklch(40.4% 0.175 301.8);
Tailwind
colors: {
  custom: {
    50: '#9064b5',
    500: '#5c2295',
    950: '#000000',
  },
}
SCSS
$custom: #5c2295;
$custom-light: #9064b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2295",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 270.261,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40404,
    "c": 0.1751,
    "h": 301.8
  },
  "luminance": 0.05589
}

Semantic roles & 50–950 ramp

primary
#5C2295
secondary
#89BD56
accent
#E64293
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2295

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

Preview Lab → · Contrast checker → · Palette generator →

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