#5C2187#5C2187

#5C2187 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.161 H 306.6°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#5C2187
RGBrgb(92, 33, 135)
HSLhsl(275, 61%, 33%)
HSVhsv(275, 76%, 53%)
CMYKcmyk(31.9%, 75.6%, 0%, 47.1%)
CIE-LABlab(27.05, 45.07, -45.59)
CIE-LCHlch(27.05, 64.11, 314.67°)
OKLaboklab(39.13% 0.0963 -0.1295)
OKLCHoklch(39.13% 0.161 306.6)
XYZxyz(9.3297, 5.1124, 23.4123)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2187 #4C8721
analogous
#292187 #5C2187 #87217F
triadic
#5C2187 #875C21 #21875C
tetradic
#5C2187 #872921 #4C8721 #217F87
square
#5C2187 #872921 #4C8721 #217F87
split-complementary
#5C2187 #7F8721 #218729
monochromatic
#190925 #3A1556 #5C2187 #7E2DB8 #9C4FD4

Accessibility & contrast

On white

10.38
#5C2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5C2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2187
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2187#FFFFFF#000000##FFFFFF
##5C21871.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#553952
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c2187;
/* rgb */ color: rgb(92, 33, 135);
/* oklch */ color: oklch(39.1% 0.161 306.6);
Tailwind
colors: {
  custom: {
    50: '#8f62ab',
    500: '#5c2187',
    950: '#000000',
  },
}
SCSS
$custom: #5c2187;
$custom-light: #8f62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2187",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 274.706,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39131,
    "c": 0.16143,
    "h": 306.6
  },
  "luminance": 0.05112
}

Semantic roles & 50–950 ramp

primary
#5C2187
secondary
#7AB74D
accent
#E44487
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5C2187

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

Preview Lab → · Contrast checker → · Palette generator →

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