#5C2AA3#5C2AA3

#5C2AA3 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.181 H 296.7°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5C2AA3
RGBrgb(92, 42, 163)
HSLhsl(265, 59%, 40%)
HSVhsv(265, 74%, 64%)
CMYKcmyk(43.6%, 74.2%, 0%, 36.1%)
CIE-LABlab(30.82, 47.98, -56.65)
CIE-LCHlch(30.82, 74.24, 310.26°)
OKLaboklab(42.51% 0.0815 -0.1621)
OKLCHoklch(42.51% 0.181 296.7)
XYZxyz(11.8507, 6.5753, 35.2880)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2AA3 #71A32A
analogous
#2A35A3 #5C2AA3 #982AA3
triadic
#5C2AA3 #A35C2A #2AA35C
tetradic
#5C2AA3 #A32A35 #71A32A #2AA398
square
#5C2AA3 #A32A35 #71A32A #2AA398
split-complementary
#5C2AA3 #A3982A #35A32A
monochromatic
#251142 #411D72 #5C2AA3 #793DCD #9A6EDA

Accessibility & contrast

On white

9.07
#5C2AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5C2AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2AA3
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2AA3#FFFFFF#000000##FFFFFF
##5C2AA31.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0047A1
Tritanopia (blue-blind)
#494964
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5c2aa3;
/* rgb */ color: rgb(92, 42, 163);
/* oklch */ color: oklch(42.5% 0.181 296.7);
Tailwind
colors: {
  custom: {
    50: '#9168bf',
    500: '#5c2aa3',
    950: '#000000',
  },
}
SCSS
$custom: #5c2aa3;
$custom-light: #9168bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2aa3",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 264.793,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4251,
    "c": 0.18146,
    "h": 296.7
  },
  "luminance": 0.06576
}

Semantic roles & 50–950 ramp

primary
#5C2AA3
secondary
#9CC068
accent
#E246A1
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C2AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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