#5C2DB7#5C2DB7

#5C2DB7 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.6% C 0.201 H 291.6°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#5C2DB7
RGBrgb(92, 45, 183)
HSLhsl(260, 61%, 45%)
HSVhsv(260, 75%, 72%)
CMYKcmyk(49.7%, 75.4%, 0%, 28.2%)
CIE-LABlab(33.07, 51.89, -64.94)
CIE-LCHlch(33.07, 83.13, 308.63°)
OKLaboklab(44.64% 0.074 -0.1864)
OKLCHoklch(44.64% 0.201 291.6)
XYZxyz(13.8968, 7.5705, 45.5196)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2DB7 #88B72D
analogous
#2D43B7 #5C2DB7 #A12DB7
triadic
#5C2DB7 #B75C2D #2DB75C
tetradic
#5C2DB7 #B72D43 #88B72D #2DB7A1
square
#5C2DB7 #B72D43 #88B72D #2DB7A1
split-complementary
#5C2DB7 #B7A12D #43B72D
monochromatic
#2B1555 #432186 #5C2DB7 #7B4ED3 #A07FDF

Accessibility & contrast

On white

8.35
#5C2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5C2DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2DB7
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2DB7#FFFFFF#000000##FFFFFF
##5C2DB71.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#004BB4
Tritanopia (blue-blind)
#3E5370
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5c2db7;
/* rgb */ color: rgb(92, 45, 183);
/* oklch */ color: oklch(44.6% 0.201 291.6);
Tailwind
colors: {
  custom: {
    50: '#936bce',
    500: '#5c2db7',
    950: '#000000',
  },
}
SCSS
$custom: #5c2db7;
$custom-light: #936bce;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2db7",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 260.435,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44635,
    "c": 0.20058,
    "h": 291.6
  },
  "luminance": 0.07571
}

Semantic roles & 50–950 ramp

primary
#5C2DB7
secondary
#ADC878
accent
#E444AD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5C2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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