#5C2DBA#5C2DBA

#5C2DBA is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.9% C 0.204 H 291.0°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#5C2DBA
RGBrgb(92, 45, 186)
HSLhsl(260, 61%, 45%)
HSVhsv(260, 76%, 73%)
CMYKcmyk(50.5%, 75.8%, 0%, 27.1%)
CIE-LABlab(33.34, 52.70, -66.27)
CIE-LCHlch(33.34, 84.67, 308.49°)
OKLaboklab(44.91% 0.0732 -0.1903)
OKLCHoklch(44.91% 0.204 291)
XYZxyz(14.2124, 7.6967, 47.1816)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2DBA #8BBA2D
analogous
#2D44BA #5C2DBA #A22DBA
triadic
#5C2DBA #BA5C2D #2DBA5C
tetradic
#5C2DBA #BA2D44 #8BBA2D #2DBAA2
square
#5C2DBA #BA2D44 #8BBA2D #2DBAA2
split-complementary
#5C2DBA #BAA22D #44BA2D
monochromatic
#2B1557 #442189 #5C2DBA #7C50D5 #A181E0

Accessibility & contrast

On white

8.27
#5C2DBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5C2DBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2DBA
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2DBA#FFFFFF#000000##FFFFFF
##5C2DBA1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BE
Deuteranopia (green-blind)
#004BB7
Tritanopia (blue-blind)
#3C5472
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5c2dba;
/* rgb */ color: rgb(92, 45, 186);
/* oklch */ color: oklch(44.9% 0.204 291.0);
Tailwind
colors: {
  custom: {
    50: '#946bd0',
    500: '#5c2dba',
    950: '#000000',
  },
}
SCSS
$custom: #5c2dba;
$custom-light: #946bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2dba",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 260,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44908,
    "c": 0.20393,
    "h": 291
  },
  "luminance": 0.07697
}

Semantic roles & 50–950 ramp

primary
#5C2DBA
secondary
#AFC979
accent
#E444AF
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5C2DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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