#5C2CA2#5C2CA2

#5C2CA2 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.178 H 296.6°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#5C2CA2
RGBrgb(92, 44, 162)
HSLhsl(264, 57%, 40%)
HSVhsv(264, 73%, 64%)
CMYKcmyk(43.2%, 72.8%, 0%, 36.5%)
CIE-LABlab(31.08, 46.75, -55.63)
CIE-LCHlch(31.08, 72.66, 310.04°)
OKLaboklab(42.67% 0.0798 -0.1591)
OKLCHoklch(42.67% 0.178 296.6)
XYZxyz(11.8342, 6.6851, 34.8423)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2CA2 #72A22C
analogous
#2C37A2 #5C2CA2 #972CA2
triadic
#5C2CA2 #A25C2C #2CA25C
tetradic
#5C2CA2 #A22C37 #72A22C #2CA297
square
#5C2CA2 #A22C37 #72A22C #2CA297
split-complementary
#5C2CA2 #A2972C #37A22C
monochromatic
#251242 #411F72 #5C2CA2 #7940CB #9B70D8

Accessibility & contrast

On white

8.99
#5C2CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5C2CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2CA2
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2CA2#FFFFFF#000000##FFFFFF
##5C2CA21.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#4A4A64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5c2ca2;
/* rgb */ color: rgb(92, 44, 162);
/* oklch */ color: oklch(42.7% 0.178 296.6);
Tailwind
colors: {
  custom: {
    50: '#916abe',
    500: '#5c2ca2',
    950: '#000000',
  },
}
SCSS
$custom: #5c2ca2;
$custom-light: #916abe;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2ca2",
  "rgb": {
    "r": 92,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 264.407,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42667,
    "c": 0.17801,
    "h": 296.6
  },
  "luminance": 0.06685
}

Semantic roles & 50–950 ramp

primary
#5C2CA2
secondary
#9DBF6A
accent
#E147A2
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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