#5C2BAB#5C2BAB

#5C2BAB is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.189 H 294.6°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#5C2BAB
RGBrgb(92, 43, 171)
HSLhsl(263, 60%, 42%)
HSVhsv(263, 75%, 67%)
CMYKcmyk(46.2%, 74.9%, 0%, 32.9%)
CIE-LABlab(31.68, 49.62, -60.07)
CIE-LCHlch(31.68, 77.91, 309.56°)
OKLaboklab(43.33% 0.0787 -0.1721)
OKLCHoklch(43.33% 0.189 294.6)
XYZxyz(12.6262, 6.9430, 39.1951)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2BAB #7AAB2B
analogous
#2B3AAB #5C2BAB #9C2BAB
triadic
#5C2BAB #AB5C2B #2BAB5C
tetradic
#5C2BAB #AB2B3A #7AAB2B #2BAB9C
square
#5C2BAB #AB2B3A #7AAB2B #2BAB9C
split-complementary
#5C2BAB #AB9C2B #3AAB2B
monochromatic
#271249 #421F7A #5C2BAB #7943D0 #9C74DC

Accessibility & contrast

On white

8.79
#5C2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5C2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2BAB
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2BAB#FFFFFF#000000##FFFFFF
##5C2BAB1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#454D69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5c2bab;
/* rgb */ color: rgb(92, 43, 171);
/* oklch */ color: oklch(43.3% 0.189 294.6);
Tailwind
colors: {
  custom: {
    50: '#9269c5',
    500: '#5c2bab',
    950: '#000000',
  },
}
SCSS
$custom: #5c2bab;
$custom-light: #9269c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2bab",
  "rgb": {
    "r": 92,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 262.969,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43327,
    "c": 0.18928,
    "h": 294.6
  },
  "luminance": 0.06943
}

Semantic roles & 50–950 ramp

primary
#5C2BAB
secondary
#A3C46E
accent
#E345A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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