#5C2AA7#5C2AA7

#5C2AA7 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.186 H 295.7°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#5C2AA7
RGBrgb(92, 42, 167)
HSLhsl(264, 60%, 41%)
HSVhsv(264, 75%, 65%)
CMYKcmyk(44.9%, 74.9%, 0%, 34.5%)
CIE-LABlab(31.16, 49.03, -58.51)
CIE-LCHlch(31.16, 76.34, 309.96°)
OKLaboklab(42.86% 0.0806 -0.1676)
OKLCHoklch(42.86% 0.186 295.7)
XYZxyz(12.2148, 6.7210, 37.2054)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2AA7 #75A72A
analogous
#2A36A7 #5C2AA7 #9A2AA7
triadic
#5C2AA7 #A75C2A #2AA75C
tetradic
#5C2AA7 #A72A36 #75A72A #2AA79A
square
#5C2AA7 #A72A36 #75A72A #2AA79A
split-complementary
#5C2AA7 #A79A2A #36A72A
monochromatic
#261145 #411E76 #5C2AA7 #793FCF #9B70DB

Accessibility & contrast

On white

8.96
#5C2AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2AA7
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2AA7#FFFFFF#000000##FFFFFF
##5C2AA71.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#474B66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5c2aa7;
/* rgb */ color: rgb(92, 42, 167);
/* oklch */ color: oklch(42.9% 0.186 295.7);
Tailwind
colors: {
  custom: {
    50: '#9169c2',
    500: '#5c2aa7',
    950: '#000000',
  },
}
SCSS
$custom: #5c2aa7;
$custom-light: #9169c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2aa7",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 264,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42858,
    "c": 0.18592,
    "h": 295.7
  },
  "luminance": 0.06721
}

Semantic roles & 50–950 ramp

primary
#5C2AA7
secondary
#9FC26B
accent
#E345A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5C2AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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