#5C2DA9#5C2DA9

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

Color values

HEX#5C2DA9
RGBrgb(92, 45, 169)
HSLhsl(263, 58%, 42%)
HSVhsv(263, 73%, 66%)
CMYKcmyk(45.6%, 73.4%, 0%, 33.7%)
CIE-LABlab(31.84, 48.12, -58.60)
CIE-LCHlch(31.84, 75.83, 309.39°)
OKLaboklab(43.39% 0.0774 -0.1678)
OKLCHoklch(43.39% 0.185 294.7)
XYZxyz(12.5115, 7.0163, 38.2235)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2DA9 #7AA92D
analogous
#2D3CA9 #5C2DA9 #9A2DA9
triadic
#5C2DA9 #A95C2D #2DA95C
tetradic
#5C2DA9 #A92D3C #7AA92D #2DA99A
square
#5C2DA9 #A92D3C #7AA92D #2DA99A
split-complementary
#5C2DA9 #A99A2D #3CA92D
monochromatic
#271348 #422079 #5C2DA9 #7946CE #9C76DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C2DA9#FFFFFF#000000##FFFFFF
##5C2DA91.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)
#004CAD
Deuteranopia (green-blind)
#0049A7
Tritanopia (blue-blind)
#464D68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5c2da9;
/* rgb */ color: rgb(92, 45, 169);
/* oklch */ color: oklch(43.4% 0.185 294.7);
Tailwind
colors: {
  custom: {
    50: '#916ac4',
    500: '#5c2da9',
    950: '#000000',
  },
}
SCSS
$custom: #5c2da9;
$custom-light: #916ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2da9",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 169
  },
  "hsl": {
    "h": 262.742,
    "s": 57.944,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43392,
    "c": 0.18481,
    "h": 294.7
  },
  "luminance": 0.07017
}

Semantic roles & 50–950 ramp

primary
#5C2DA9
secondary
#A3C26F
accent
#E147A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C2DA9

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

Preview Lab → · Contrast checker → · Palette generator →

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