#5C2AA8#5C2AA8

#5C2AA8 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.187 H 295.4°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#5C2AA8
RGBrgb(92, 42, 168)
HSLhsl(264, 60%, 41%)
HSVhsv(264, 75%, 66%)
CMYKcmyk(45.2%, 75%, 0%, 34.1%)
CIE-LABlab(31.25, 49.30, -58.97)
CIE-LCHlch(31.25, 76.86, 309.89°)
OKLaboklab(42.95% 0.0803 -0.1689)
OKLCHoklch(42.95% 0.187 295.4)
XYZxyz(12.3076, 6.7581, 37.6942)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2AA8 #76A82A
analogous
#2A37A8 #5C2AA8 #9B2AA8
triadic
#5C2AA8 #A85C2A #2AA85C
tetradic
#5C2AA8 #A82A37 #76A82A #2AA89B
square
#5C2AA8 #A82A37 #76A82A #2AA89B
split-complementary
#5C2AA8 #A89B2A #37A82A
monochromatic
#261246 #411E77 #5C2AA8 #7940CF #9B71DB

Accessibility & contrast

On white

8.93
#5C2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5C2AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2AA8
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2AA8#FFFFFF#000000##FFFFFF
##5C2AA81.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0048A6
Tritanopia (blue-blind)
#474B67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c2aa8;
/* rgb */ color: rgb(92, 42, 168);
/* oklch */ color: oklch(42.9% 0.187 295.4);
Tailwind
colors: {
  custom: {
    50: '#9169c3',
    500: '#5c2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #5c2aa8;
$custom-light: #9169c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2aa8",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 263.81,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42946,
    "c": 0.18703,
    "h": 295.4
  },
  "luminance": 0.06758
}

Semantic roles & 50–950 ramp

primary
#5C2AA8
secondary
#A0C36B
accent
#E345A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5C2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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