#5C2CAB#5C2CAB

#5C2CAB is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.188 H 294.4°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5C2CAB
RGBrgb(92, 44, 171)
HSLhsl(263, 59%, 42%)
HSVhsv(263, 74%, 67%)
CMYKcmyk(46.2%, 74.3%, 0%, 32.9%)
CIE-LABlab(31.84, 49.14, -59.80)
CIE-LCHlch(31.84, 77.40, 309.41°)
OKLaboklab(43.45% 0.0778 -0.1713)
OKLCHoklch(43.45% 0.188 294.4)
XYZxyz(12.6630, 7.0166, 39.2073)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2CAB #7BAB2C
analogous
#2C3CAB #5C2CAB #9C2CAB
triadic
#5C2CAB #AB5C2C #2CAB5C
tetradic
#5C2CAB #AB2C3C #7BAB2C #2CAB9C
square
#5C2CAB #AB2C3C #7BAB2C #2CAB9C
split-complementary
#5C2CAB #AB9C2C #3CAB2C
monochromatic
#28134A #421F7A #5C2CAB #7945CF #9C76DC

Accessibility & contrast

On white

8.74
#5C2CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5C2CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2CAB
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2CAB#FFFFFF#000000##FFFFFF
##5C2CAB1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c2cab;
/* rgb */ color: rgb(92, 44, 171);
/* oklch */ color: oklch(43.4% 0.188 294.4);
Tailwind
colors: {
  custom: {
    50: '#926ac5',
    500: '#5c2cab',
    950: '#000000',
  },
}
SCSS
$custom: #5c2cab;
$custom-light: #926ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2cab",
  "rgb": {
    "r": 92,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 262.677,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43446,
    "c": 0.18819,
    "h": 294.4
  },
  "luminance": 0.07017
}

Semantic roles & 50–950 ramp

primary
#5C2CAB
secondary
#A4C36F
accent
#E246A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C2CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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