#5C2B98#5C2B98

#5C2B98 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.168 H 299.6°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#5C2B98
RGBrgb(92, 43, 152)
HSLhsl(267, 56%, 38%)
HSVhsv(267, 72%, 60%)
CMYKcmyk(39.5%, 71.7%, 0%, 40.4%)
CIE-LABlab(30.08, 44.61, -51.17)
CIE-LCHlch(30.08, 67.88, 311.08°)
OKLaboklab(41.71% 0.0828 -0.146)
OKLCHoklch(41.71% 0.168 299.6)
XYZxyz(10.9436, 6.2699, 30.3333)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2B98 #67982B
analogous
#2B3198 #5C2B98 #922B98
triadic
#5C2B98 #985C2B #2B985C
tetradic
#5C2B98 #982B31 #67982B #2B9892
square
#5C2B98 #982B31 #67982B #2B9892
split-complementary
#5C2B98 #98922B #31982B
monochromatic
#221039 #3F1E68 #5C2B98 #7939C7 #9969D5

Accessibility & contrast

On white

9.32
#5C2B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5C2B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2B98
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2B98#FFFFFF#000000##FFFFFF
##5C2B981.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#4E465E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c2b98;
/* rgb */ color: rgb(92, 43, 152);
/* oklch */ color: oklch(41.7% 0.168 299.6);
Tailwind
colors: {
  custom: {
    50: '#9069b7',
    500: '#5c2b98',
    950: '#000000',
  },
}
SCSS
$custom: #5c2b98;
$custom-light: #9069b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2b98",
  "rgb": {
    "r": 92,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 266.972,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41705,
    "c": 0.16785,
    "h": 299.6
  },
  "luminance": 0.0627
}

Semantic roles & 50–950 ramp

primary
#5C2B98
secondary
#94BB64
accent
#DF499C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2B98

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

Preview Lab → · Contrast checker → · Palette generator →

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