#5C2A9C#5C2A9C

#5C2A9C is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.174 H 298.6°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#5C2A9C
RGBrgb(92, 42, 156)
HSLhsl(266, 58%, 39%)
HSVhsv(266, 73%, 61%)
CMYKcmyk(41%, 73.1%, 0%, 38.8%)
CIE-LABlab(30.23, 46.14, -53.36)
CIE-LCHlch(30.23, 70.55, 310.85°)
OKLaboklab(41.91% 0.083 -0.1524)
OKLCHoklch(41.91% 0.174 298.6)
XYZxyz(11.2408, 6.3314, 32.0759)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2A9C #6A9C2A
analogous
#2A319C #5C2A9C #952A9C
triadic
#5C2A9C #9C5C2A #2A9C5C
tetradic
#5C2A9C #9C2A31 #6A9C2A #2A9C95
square
#5C2A9C #9C2A31 #6A9C2A #2A9C95
split-complementary
#5C2A9C #9C952A #319C2A
monochromatic
#23103C #401D6C #5C2A9C #7939CA #996AD7

Accessibility & contrast

On white

9.27
#5C2A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5C2A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2A9C
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2A9C#FFFFFF#000000##FFFFFF
##5C2A9C1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#00469A
Tritanopia (blue-blind)
#4C4760
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c2a9c;
/* rgb */ color: rgb(92, 42, 156);
/* oklch */ color: oklch(41.9% 0.174 298.6);
Tailwind
colors: {
  custom: {
    50: '#9068ba',
    500: '#5c2a9c',
    950: '#000000',
  },
}
SCSS
$custom: #5c2a9c;
$custom-light: #9068ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2a9c",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 266.316,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41914,
    "c": 0.1736,
    "h": 298.6
  },
  "luminance": 0.06332
}

Semantic roles & 50–950 ramp

primary
#5C2A9C
secondary
#96BD65
accent
#E1479D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C2A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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