#5C2297#5C2297

#5C2297 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.177 H 301.2°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#5C2297
RGBrgb(92, 34, 151)
HSLhsl(270, 63%, 36%)
HSVhsv(270, 77%, 59%)
CMYKcmyk(39.1%, 77.5%, 0%, 40.8%)
CIE-LABlab(28.52, 48.54, -53.10)
CIE-LCHlch(28.52, 71.95, 312.43°)
OKLaboklab(40.58% 0.0917 -0.1516)
OKLCHoklch(40.58% 0.177 301.2)
XYZxyz(10.5702, 5.6537, 29.8065)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2297 #5D9722
analogous
#222297 #5C2297 #972297
triadic
#5C2297 #975C22 #22975C
tetradic
#5C2297 #972222 #5D9722 #229797
square
#5C2297 #972222 #5D9722 #229797
split-complementary
#5C2297 #979722 #229722
monochromatic
#1F0C33 #3E1765 #5C2297 #7A2DC9 #995ADA

Accessibility & contrast

On white

9.86
#5C2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5C2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2297
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2297#FFFFFF#000000##FFFFFF
##5C22971.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#4F415B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5c2297;
/* rgb */ color: rgb(92, 34, 151);
/* oklch */ color: oklch(40.6% 0.177 301.2);
Tailwind
colors: {
  custom: {
    50: '#9064b6',
    500: '#5c2297',
    950: '#000000',
  },
}
SCSS
$custom: #5c2297;
$custom-light: #9064b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2297",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 269.744,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40576,
    "c": 0.17721,
    "h": 301.2
  },
  "luminance": 0.05654
}

Semantic roles & 50–950 ramp

primary
#5C2297
secondary
#8BBE57
accent
#E64295
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2297

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

Preview Lab → · Contrast checker → · Palette generator →

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