#5C2286#5C2286

#5C2286 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.159 H 306.9°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#5C2286
RGBrgb(92, 34, 134)
HSLhsl(275, 60%, 33%)
HSVhsv(275, 75%, 53%)
CMYKcmyk(31.3%, 74.6%, 0%, 47.5%)
CIE-LABlab(27.13, 44.39, -44.84)
CIE-LCHlch(27.13, 63.09, 314.71°)
OKLaboklab(39.16% 0.0955 -0.1273)
OKLCHoklch(39.16% 0.159 306.9)
XYZxyz(9.2878, 5.1407, 23.0526)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2286 #4C8622
analogous
#2A2286 #5C2286 #86227E
triadic
#5C2286 #865C22 #22865C
tetradic
#5C2286 #862A22 #4C8622 #227E86
square
#5C2286 #862A22 #4C8622 #227E86
split-complementary
#5C2286 #7E8622 #22862A
monochromatic
#190924 #3A1655 #5C2286 #7E2EB7 #9C50D3

Accessibility & contrast

On white

10.35
#5C2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2286
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2286#FFFFFF#000000##FFFFFF
##5C22861.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c2286;
/* rgb */ color: rgb(92, 34, 134);
/* oklch */ color: oklch(39.2% 0.159 306.9);
Tailwind
colors: {
  custom: {
    50: '#8e63aa',
    500: '#5c2286',
    950: '#000000',
  },
}
SCSS
$custom: #5c2286;
$custom-light: #8e63aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2286",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 274.8,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39162,
    "c": 0.15916,
    "h": 306.9
  },
  "luminance": 0.05141
}

Semantic roles & 50–950 ramp

primary
#5C2286
secondary
#7AB64E
accent
#E34587
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5C2286

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

Preview Lab → · Contrast checker → · Palette generator →

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