#5C2BA3#5C2BA3

#5C2BA3 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.180 H 296.5°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#5C2BA3
RGBrgb(92, 43, 163)
HSLhsl(265, 58%, 40%)
HSVhsv(265, 74%, 64%)
CMYKcmyk(43.6%, 73.6%, 0%, 36.1%)
CIE-LABlab(30.99, 47.50, -56.38)
CIE-LCHlch(30.99, 73.72, 310.11°)
OKLaboklab(42.63% 0.0806 -0.1613)
OKLCHoklch(42.63% 0.18 296.5)
XYZxyz(11.8866, 6.6472, 35.3000)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2BA3 #72A32B
analogous
#2B36A3 #5C2BA3 #982BA3
triadic
#5C2BA3 #A35C2B #2BA35C
tetradic
#5C2BA3 #A32B36 #72A32B #2BA398
square
#5C2BA3 #A32B36 #72A32B #2BA398
split-complementary
#5C2BA3 #A3982B #36A32B
monochromatic
#251142 #411E73 #5C2BA3 #793FCC #9B6FD9

Accessibility & contrast

On white

9.02
#5C2BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5C2BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2BA3
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2BA3#FFFFFF#000000##FFFFFF
##5C2BA31.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#0047A1
Tritanopia (blue-blind)
#494A64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5c2ba3;
/* rgb */ color: rgb(92, 43, 163);
/* oklch */ color: oklch(42.6% 0.180 296.5);
Tailwind
colors: {
  custom: {
    50: '#9169bf',
    500: '#5c2ba3',
    950: '#000000',
  },
}
SCSS
$custom: #5c2ba3;
$custom-light: #9169bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2ba3",
  "rgb": {
    "r": 92,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 264.5,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4263,
    "c": 0.18031,
    "h": 296.5
  },
  "luminance": 0.06647
}

Semantic roles & 50–950 ramp

primary
#5C2BA3
secondary
#9DC06A
accent
#E146A2
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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