#5C2BA6#5C2BA6

#5C2BA6 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.184 H 295.8°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#5C2BA6
RGBrgb(92, 43, 166)
HSLhsl(264, 59%, 41%)
HSVhsv(264, 74%, 65%)
CMYKcmyk(44.6%, 74.1%, 0%, 34.9%)
CIE-LABlab(31.24, 48.29, -57.77)
CIE-LCHlch(31.24, 75.30, 309.89°)
OKLaboklab(42.89% 0.0799 -0.1654)
OKLCHoklch(42.89% 0.184 295.8)
XYZxyz(12.1586, 6.7560, 36.7324)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2BA6 #75A62B
analogous
#2B38A6 #5C2BA6 #992BA6
triadic
#5C2BA6 #A65C2B #2BA65C
tetradic
#5C2BA6 #A62B38 #75A62B #2BA699
square
#5C2BA6 #A62B38 #75A62B #2BA699
split-complementary
#5C2BA6 #A6992B #38A62B
monochromatic
#261245 #411E75 #5C2BA6 #7941CE #9B71DA

Accessibility & contrast

On white

8.93
#5C2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5C2BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2BA6
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2BA6#FFFFFF#000000##FFFFFF
##5C2BA61.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0048A4
Tritanopia (blue-blind)
#484B66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c2ba6;
/* rgb */ color: rgb(92, 43, 166);
/* oklch */ color: oklch(42.9% 0.184 295.8);
Tailwind
colors: {
  custom: {
    50: '#9169c1',
    500: '#5c2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #5c2ba6;
$custom-light: #9169c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2ba6",
  "rgb": {
    "r": 92,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 263.902,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42889,
    "c": 0.18368,
    "h": 295.8
  },
  "luminance": 0.06756
}

Semantic roles & 50–950 ramp

primary
#5C2BA6
secondary
#9FC16B
accent
#E246A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5C2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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