#5C2DA6#5C2DA6

#5C2DA6 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.181 H 295.5°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#5C2DA6
RGBrgb(92, 45, 166)
HSLhsl(263, 57%, 41%)
HSVhsv(263, 73%, 65%)
CMYKcmyk(44.6%, 72.9%, 0%, 34.9%)
CIE-LABlab(31.59, 47.32, -57.21)
CIE-LCHlch(31.59, 74.24, 309.60°)
OKLaboklab(43.13% 0.078 -0.1638)
OKLCHoklch(43.13% 0.181 295.5)
XYZxyz(12.2331, 6.9050, 36.7573)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2DA6 #77A62D
analogous
#2D3BA6 #5C2DA6 #992DA6
triadic
#5C2DA6 #A65C2D #2DA65C
tetradic
#5C2DA6 #A62D3B #77A62D #2DA699
square
#5C2DA6 #A62D3B #77A62D #2DA699
split-complementary
#5C2DA6 #A6992D #3BA62D
monochromatic
#271346 #412076 #5C2DA6 #7944CC #9B74D9

Accessibility & contrast

On white

8.82
#5C2DA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5C2DA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2DA6
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2DA6#FFFFFF#000000##FFFFFF
##5C2DA61.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#0048A4
Tritanopia (blue-blind)
#484C67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c2da6;
/* rgb */ color: rgb(92, 45, 166);
/* oklch */ color: oklch(43.1% 0.181 295.5);
Tailwind
colors: {
  custom: {
    50: '#916ac1',
    500: '#5c2da6',
    950: '#000000',
  },
}
SCSS
$custom: #5c2da6;
$custom-light: #916ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2da6",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 166
  },
  "hsl": {
    "h": 263.306,
    "s": 57.346,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43133,
    "c": 0.1814,
    "h": 295.5
  },
  "luminance": 0.06905
}

Semantic roles & 50–950 ramp

primary
#5C2DA6
secondary
#A1C16E
accent
#E147A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2DA6

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

Preview Lab → · Contrast checker → · Palette generator →

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