#5C187E#5C187E

#5C187E is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.5% C 0.162 H 311.1°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#5C187E
RGBrgb(92, 24, 126)
HSLhsl(280, 68%, 29%)
HSVhsv(280, 81%, 49%)
CMYKcmyk(27%, 81%, 0%, 50.6%)
CIE-LABlab(25.06, 46.66, -43.16)
CIE-LCHlch(25.06, 63.56, 317.23°)
OKLaboklab(37.5% 0.1068 -0.1223)
OKLCHoklch(37.5% 0.162 311.1)
XYZxyz(8.5054, 4.4352, 20.1426)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C187E #3A7E18
analogous
#29187E #5C187E #7E186D
triadic
#5C187E #7E5C18 #187E5C
tetradic
#5C187E #7E2918 #3A7E18 #186D7E
square
#5C187E #7E2918 #3A7E18 #186D7E
split-complementary
#5C187E #6D7E18 #187E29
monochromatic
#13051A #360E4B #5C187E #8222B1 #A337D9

Accessibility & contrast

On white

11.13
#5C187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5C187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C187E
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C187E#FFFFFF#000000##FFFFFF
##5C187E1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#003D7C
Tritanopia (blue-blind)
#57314B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c187e;
/* rgb */ color: rgb(92, 24, 126);
/* oklch */ color: oklch(37.5% 0.162 311.1);
Tailwind
colors: {
  custom: {
    50: '#8e5ea4',
    500: '#5c187e',
    950: '#000000',
  },
}
SCSS
$custom: #5c187e;
$custom-light: #8e5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c187e",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 280,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37503,
    "c": 0.16238,
    "h": 311.1
  },
  "luminance": 0.04435
}

Semantic roles & 50–950 ramp

primary
#5C187E
secondary
#66B23F
accent
#EB3D77
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C187E

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

Preview Lab → · Contrast checker → · Palette generator →

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