#5C189E#5C189E

#5C189E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.3% C 0.194 H 300.2°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#5C189E
RGBrgb(92, 24, 158)
HSLhsl(270, 74%, 36%)
HSVhsv(270, 85%, 62%)
CMYKcmyk(41.8%, 84.8%, 0%, 38%)
CIE-LABlab(27.84, 54.04, -58.50)
CIE-LCHlch(27.84, 79.64, 312.73°)
OKLaboklab(40.29% 0.0973 -0.1674)
OKLCHoklch(40.29% 0.194 300.2)
XYZxyz(10.9103, 5.3971, 32.8081)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C189E #5A9E18
analogous
#19189E #5C189E #9E189D
triadic
#5C189E #9E5C18 #189E5C
tetradic
#5C189E #9E1918 #5A9E18 #189D9E
square
#5C189E #9E1918 #5A9E18 #189D9E
split-complementary
#5C189E #9D9E18 #189E19
monochromatic
#1E0834 #3D1069 #5C189E #7B20D3 #994DE4

Accessibility & contrast

On white

10.10
#5C189E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5C189E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C189E
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C189E#FFFFFF#000000##FFFFFF
##5C189E1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#4C405E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c189e;
/* rgb */ color: rgb(92, 24, 158);
/* oklch */ color: oklch(40.3% 0.194 300.2);
Tailwind
colors: {
  custom: {
    50: '#9160bc',
    500: '#5c189e',
    950: '#000000',
  },
}
SCSS
$custom: #5c189e;
$custom-light: #9160bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c189e",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 158
  },
  "hsl": {
    "h": 270.448,
    "s": 73.626,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40292,
    "c": 0.19361,
    "h": 300.2
  },
  "luminance": 0.05397
}

Semantic roles & 50–950 ramp

primary
#5C189E
secondary
#88C64C
accent
#F03893
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5C189E

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

Preview Lab → · Contrast checker → · Palette generator →

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