#5C2D9B#5C2D9B

#5C2D9B is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.169 H 298.4°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#5C2D9B
RGBrgb(92, 45, 155)
HSLhsl(266, 55%, 39%)
HSVhsv(266, 71%, 61%)
CMYKcmyk(40.6%, 71%, 0%, 39.2%)
CIE-LABlab(30.68, 44.39, -52.02)
CIE-LCHlch(30.68, 68.39, 310.47°)
OKLaboklab(42.21% 0.0802 -0.1485)
OKLCHoklch(42.21% 0.169 298.4)
XYZxyz(11.2669, 6.5185, 31.6686)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2D9B #6C9B2D
analogous
#2D359B #5C2D9B #932D9B
triadic
#5C2D9B #9B5C2D #2D9B5C
tetradic
#5C2D9B #9B2D35 #6C9B2D #2D9B93
square
#5C2D9B #9B2D35 #6C9B2D #2D9B93
split-complementary
#5C2D9B #9B932D #359B2D
monochromatic
#24113C #401F6C #5C2D9B #793EC7 #9A6ED5

Accessibility & contrast

On white

9.12
#5C2D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5C2D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2D9B
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2D9B#FFFFFF#000000##FFFFFF
##5C2D9B1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#004799
Tritanopia (blue-blind)
#4D4861
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5c2d9b;
/* rgb */ color: rgb(92, 45, 155);
/* oklch */ color: oklch(42.2% 0.169 298.4);
Tailwind
colors: {
  custom: {
    50: '#906ab9',
    500: '#5c2d9b',
    950: '#000000',
  },
}
SCSS
$custom: #5c2d9b;
$custom-light: #906ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2d9b",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 265.636,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42209,
    "c": 0.16879,
    "h": 298.4
  },
  "luminance": 0.06519
}

Semantic roles & 50–950 ramp

primary
#5C2D9B
secondary
#98BC68
accent
#DE499F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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