#5C2291#5C2291

#5C2291 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.171 H 303.1°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#5C2291
RGBrgb(92, 34, 145)
HSLhsl(271, 62%, 35%)
HSVhsv(271, 77%, 57%)
CMYKcmyk(36.6%, 76.6%, 0%, 43.1%)
CIE-LABlab(28.02, 47.06, -50.23)
CIE-LCHlch(28.02, 68.83, 313.13°)
OKLaboklab(40.07% 0.0932 -0.1432)
OKLCHoklch(40.07% 0.171 303.1)
XYZxyz(10.0953, 5.4637, 27.3053)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2291 #579122
analogous
#242291 #5C2291 #91228F
triadic
#5C2291 #915C22 #22915C
tetradic
#5C2291 #912422 #579122 #228F91
square
#5C2291 #912422 #579122 #228F91
split-complementary
#5C2291 #8F9122 #229124
monochromatic
#1D0B2E #3D165F #5C2291 #7B2EC3 #9A56D7

Accessibility & contrast

On white

10.03
#5C2291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5C2291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2291
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2291#FFFFFF#000000##FFFFFF
##5C22911.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#513E58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c2291;
/* rgb */ color: rgb(92, 34, 145);
/* oklch */ color: oklch(40.1% 0.171 303.1);
Tailwind
colors: {
  custom: {
    50: '#8f63b2',
    500: '#5c2291',
    950: '#000000',
  },
}
SCSS
$custom: #5c2291;
$custom-light: #8f63b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2291",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 271.351,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40065,
    "c": 0.17086,
    "h": 303.1
  },
  "luminance": 0.05464
}

Semantic roles & 50–950 ramp

primary
#5C2291
secondary
#85BB53
accent
#E54390
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2291

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

Preview Lab → · Contrast checker → · Palette generator →

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