#5C2298#5C2298

#5C2298 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.178 H 300.9°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#5C2298
RGBrgb(92, 34, 152)
HSLhsl(269, 63%, 36%)
HSVhsv(269, 78%, 60%)
CMYKcmyk(39.5%, 77.6%, 0%, 40.4%)
CIE-LABlab(28.61, 48.79, -53.57)
CIE-LCHlch(28.61, 72.46, 312.33°)
OKLaboklab(40.66% 0.0915 -0.153)
OKLCHoklch(40.66% 0.178 300.9)
XYZxyz(10.6518, 5.6863, 30.2361)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2298 #5E9822
analogous
#222398 #5C2298 #972298
triadic
#5C2298 #985C22 #22985C
tetradic
#5C2298 #982223 #5E9822 #229897
square
#5C2298 #982223 #5E9822 #229897
split-complementary
#5C2298 #989722 #239822
monochromatic
#1F0C34 #3E1766 #5C2298 #7A2DCA #995ADA

Accessibility & contrast

On white

9.83
#5C2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5C2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2298
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2298#FFFFFF#000000##FFFFFF
##5C22981.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#4E415C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5c2298;
/* rgb */ color: rgb(92, 34, 152);
/* oklch */ color: oklch(40.7% 0.178 300.9);
Tailwind
colors: {
  custom: {
    50: '#9064b7',
    500: '#5c2298',
    950: '#000000',
  },
}
SCSS
$custom: #5c2298;
$custom-light: #9064b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2298",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 269.492,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40662,
    "c": 0.17827,
    "h": 300.9
  },
  "luminance": 0.05686
}

Semantic roles & 50–950 ramp

primary
#5C2298
secondary
#8CBE57
accent
#E64195
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2298

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

Preview Lab → · Contrast checker → · Palette generator →

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