#5C2188#5C2188

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

Color values

HEX#5C2188
RGBrgb(92, 33, 136)
HSLhsl(274, 61%, 33%)
HSVhsv(274, 76%, 53%)
CMYKcmyk(32.4%, 75.7%, 0%, 46.7%)
CIE-LABlab(27.13, 45.31, -46.09)
CIE-LCHlch(27.13, 64.63, 314.52°)
OKLaboklab(39.21% 0.0961 -0.131)
OKLCHoklch(39.21% 0.162 306.3)
XYZxyz(9.4005, 5.1407, 23.7848)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2188 #4D8821
analogous
#282188 #5C2188 #882180
triadic
#5C2188 #885C21 #21885C
tetradic
#5C2188 #882821 #4D8821 #218088
square
#5C2188 #882821 #4D8821 #218088
split-complementary
#5C2188 #808821 #218828
monochromatic
#190925 #3B1557 #5C2188 #7D2DB9 #9B4FD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C2188#FFFFFF#000000##FFFFFF
##5C21881.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)
#003E8B
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#543A53
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c2188;
/* rgb */ color: rgb(92, 33, 136);
/* oklch */ color: oklch(39.2% 0.162 306.3);
Tailwind
colors: {
  custom: {
    50: '#8f62ab',
    500: '#5c2188',
    950: '#000000',
  },
}
SCSS
$custom: #5c2188;
$custom-light: #8f62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2188",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 274.369,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39212,
    "c": 0.16249,
    "h": 306.3
  },
  "luminance": 0.05141
}

Semantic roles & 50–950 ramp

primary
#5C2188
secondary
#7BB84D
accent
#E44488
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5C2188

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

Preview Lab → · Contrast checker → · Palette generator →

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