#5C2DB8#5C2DB8

#5C2DB8 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.7% C 0.202 H 291.4°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#5C2DB8
RGBrgb(92, 45, 184)
HSLhsl(260, 61%, 45%)
HSVhsv(260, 76%, 72%)
CMYKcmyk(50%, 75.5%, 0%, 27.8%)
CIE-LABlab(33.16, 52.16, -65.38)
CIE-LCHlch(33.16, 83.64, 308.58°)
OKLaboklab(44.73% 0.0737 -0.1877)
OKLCHoklch(44.73% 0.202 291.4)
XYZxyz(14.0013, 7.6122, 46.0697)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2DB8 #89B82D
analogous
#2D43B8 #5C2DB8 #A22DB8
triadic
#5C2DB8 #B85C2D #2DB85C
tetradic
#5C2DB8 #B82D43 #89B82D #2DB8A2
square
#5C2DB8 #B82D43 #89B82D #2DB8A2
split-complementary
#5C2DB8 #B8A22D #43B82D
monochromatic
#2B1556 #432187 #5C2DB8 #7C4ED4 #A080E0

Accessibility & contrast

On white

8.32
#5C2DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5C2DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2DB8
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2DB8#FFFFFF#000000##FFFFFF
##5C2DB81.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BC
Deuteranopia (green-blind)
#004BB5
Tritanopia (blue-blind)
#3D5371
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5c2db8;
/* rgb */ color: rgb(92, 45, 184);
/* oklch */ color: oklch(44.7% 0.202 291.4);
Tailwind
colors: {
  custom: {
    50: '#936bce',
    500: '#5c2db8',
    950: '#000000',
  },
}
SCSS
$custom: #5c2db8;
$custom-light: #936bce;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2db8",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 260.288,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44726,
    "c": 0.20169,
    "h": 291.4
  },
  "luminance": 0.07613
}

Semantic roles & 50–950 ramp

primary
#5C2DB8
secondary
#ADC978
accent
#E444AE
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5C2DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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