#5C2287#5C2287

#5C2287 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.160 H 306.5°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#5C2287
RGBrgb(92, 34, 135)
HSLhsl(274, 60%, 33%)
HSVhsv(274, 75%, 53%)
CMYKcmyk(31.9%, 74.8%, 0%, 47.1%)
CIE-LABlab(27.21, 44.63, -45.33)
CIE-LCHlch(27.21, 63.62, 314.55°)
OKLaboklab(39.24% 0.0953 -0.1288)
OKLCHoklch(39.24% 0.16 306.5)
XYZxyz(9.3579, 5.1687, 23.4217)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2287 #4D8722
analogous
#292287 #5C2287 #87227F
triadic
#5C2287 #875C22 #22875C
tetradic
#5C2287 #872922 #4D8722 #227F87
square
#5C2287 #872922 #4D8722 #227F87
split-complementary
#5C2287 #7F8722 #228729
monochromatic
#190925 #3B1656 #5C2287 #7D2EB8 #9B50D3

Accessibility & contrast

On white

10.33
#5C2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5C2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2287
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2287#FFFFFF#000000##FFFFFF
##5C22871.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#553A52
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c2287;
/* rgb */ color: rgb(92, 34, 135);
/* oklch */ color: oklch(39.2% 0.160 306.5);
Tailwind
colors: {
  custom: {
    50: '#8e63ab',
    500: '#5c2287',
    950: '#000000',
  },
}
SCSS
$custom: #5c2287;
$custom-light: #8e63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2287",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 274.455,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39242,
    "c": 0.16023,
    "h": 306.5
  },
  "luminance": 0.05169
}

Semantic roles & 50–950 ramp

primary
#5C2287
secondary
#7BB74E
accent
#E34588
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C2287

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

Preview Lab → · Contrast checker → · Palette generator →

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