#5C2DA8#5C2DA8

#5C2DA8 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.184 H 295.0°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5C2DA8
RGBrgb(92, 45, 168)
HSLhsl(263, 58%, 42%)
HSVhsv(263, 73%, 66%)
CMYKcmyk(45.2%, 73.2%, 0%, 34.1%)
CIE-LABlab(31.76, 47.85, -58.14)
CIE-LCHlch(31.76, 75.30, 309.46°)
OKLaboklab(43.31% 0.0776 -0.1665)
OKLCHoklch(43.31% 0.184 295)
XYZxyz(12.4180, 6.9789, 37.7310)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2DA8 #79A82D
analogous
#2D3CA8 #5C2DA8 #9A2DA8
triadic
#5C2DA8 #A85C2D #2DA85C
tetradic
#5C2DA8 #A82D3C #79A82D #2DA89A
square
#5C2DA8 #A82D3C #79A82D #2DA89A
split-complementary
#5C2DA8 #A89A2D #3CA82D
monochromatic
#271347 #422078 #5C2DA8 #7945CD #9C75DA

Accessibility & contrast

On white

8.77
#5C2DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2DA8
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2DA8#FFFFFF#000000##FFFFFF
##5C2DA81.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0049A6
Tritanopia (blue-blind)
#474D68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5c2da8;
/* rgb */ color: rgb(92, 45, 168);
/* oklch */ color: oklch(43.3% 0.184 295.0);
Tailwind
colors: {
  custom: {
    50: '#916ac3',
    500: '#5c2da8',
    950: '#000000',
  },
}
SCSS
$custom: #5c2da8;
$custom-light: #916ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2da8",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 262.927,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43306,
    "c": 0.18367,
    "h": 295
  },
  "luminance": 0.06979
}

Semantic roles & 50–950 ramp

primary
#5C2DA8
secondary
#A2C26F
accent
#E147A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C2DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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