#5C2BA4#5C2BA4

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

Color values

HEX#5C2BA4
RGBrgb(92, 43, 164)
HSLhsl(264, 58%, 41%)
HSVhsv(264, 74%, 64%)
CMYKcmyk(43.9%, 73.8%, 0%, 35.7%)
CIE-LABlab(31.07, 47.76, -56.84)
CIE-LCHlch(31.07, 74.25, 310.04°)
OKLaboklab(42.72% 0.0804 -0.1627)
OKLCHoklch(42.72% 0.181 296.3)
XYZxyz(11.9766, 6.6831, 35.7737)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2BA4 #73A42B
analogous
#2B36A4 #5C2BA4 #982BA4
triadic
#5C2BA4 #A45C2B #2BA45C
tetradic
#5C2BA4 #A42B36 #73A42B #2BA498
square
#5C2BA4 #A42B36 #73A42B #2BA498
split-complementary
#5C2BA4 #A4982B #36A42B
monochromatic
#261243 #411E74 #5C2BA4 #793FCD #9B70D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C2BA4#FFFFFF#000000##FFFFFF
##5C2BA41.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)
#004AA7
Deuteranopia (green-blind)
#0047A2
Tritanopia (blue-blind)
#494A65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5c2ba4;
/* rgb */ color: rgb(92, 43, 164);
/* oklch */ color: oklch(42.7% 0.181 296.3);
Tailwind
colors: {
  custom: {
    50: '#9169c0',
    500: '#5c2ba4',
    950: '#000000',
  },
}
SCSS
$custom: #5c2ba4;
$custom-light: #9169c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2ba4",
  "rgb": {
    "r": 92,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 264.298,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42716,
    "c": 0.18144,
    "h": 296.3
  },
  "luminance": 0.06683
}

Semantic roles & 50–950 ramp

primary
#5C2BA4
secondary
#9EC16A
accent
#E246A3
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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