#5C2DAB#5C2DAB

#5C2DAB is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.187 H 294.3°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#5C2DAB
RGBrgb(92, 45, 171)
HSLhsl(262, 58%, 42%)
HSVhsv(262, 74%, 67%)
CMYKcmyk(46.2%, 73.7%, 0%, 32.9%)
CIE-LABlab(32.02, 48.66, -59.52)
CIE-LCHlch(32.02, 76.88, 309.27°)
OKLaboklab(43.57% 0.0769 -0.1705)
OKLCHoklch(43.57% 0.187 294.3)
XYZxyz(12.7007, 7.0920, 39.2199)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2DAB #7CAB2D
analogous
#2D3DAB #5C2DAB #9B2DAB
triadic
#5C2DAB #AB5C2D #2DAB5C
tetradic
#5C2DAB #AB2D3D #7CAB2D #2DAB9B
square
#5C2DAB #AB2D3D #7CAB2D #2DAB9B
split-complementary
#5C2DAB #AB9B2D #3DAB2D
monochromatic
#28144A #42207B #5C2DAB #7947CE #9C77DB

Accessibility & contrast

On white

8.68
#5C2DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5C2DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2DAB
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2DAB#FFFFFF#000000##FFFFFF
##5C2DAB1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c2dab;
/* rgb */ color: rgb(92, 45, 171);
/* oklch */ color: oklch(43.6% 0.187 294.3);
Tailwind
colors: {
  custom: {
    50: '#926ac5',
    500: '#5c2dab',
    950: '#000000',
  },
}
SCSS
$custom: #5c2dab;
$custom-light: #926ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2dab",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 262.381,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43566,
    "c": 0.18708,
    "h": 294.3
  },
  "luminance": 0.07092
}

Semantic roles & 50–950 ramp

primary
#5C2DAB
secondary
#A4C371
accent
#E246A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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