#5D187E#5D187E

#5D187E is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.6% C 0.163 H 311.7°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#5D187E
RGBrgb(93, 24, 126)
HSLhsl(281, 68%, 29%)
HSVhsv(281, 81%, 49%)
CMYKcmyk(26.2%, 81%, 0%, 50.6%)
CIE-LABlab(25.22, 46.85, -42.90)
CIE-LCHlch(25.22, 63.52, 317.52°)
OKLaboklab(37.65% 0.1082 -0.1215)
OKLCHoklch(37.65% 0.163 311.7)
XYZxyz(8.6060, 4.4870, 20.1474)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D187E #397E18
analogous
#2A187E #5D187E #7E186C
triadic
#5D187E #7E5D18 #187E5D
tetradic
#5D187E #7E2A18 #397E18 #186C7E
square
#5D187E #7E2A18 #397E18 #186C7E
split-complementary
#5D187E #6C7E18 #187E2A
monochromatic
#13051A #370E4B #5D187E #8322B1 #A537D9

Accessibility & contrast

On white

11.07
#5D187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5D187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D187E
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D187E#FFFFFF#000000##FFFFFF
##5D187E1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#023D7C
Tritanopia (blue-blind)
#59314B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d187e;
/* rgb */ color: rgb(93, 24, 126);
/* oklch */ color: oklch(37.6% 0.163 311.7);
Tailwind
colors: {
  custom: {
    50: '#8f5ea4',
    500: '#5d187e',
    950: '#000000',
  },
}
SCSS
$custom: #5d187e;
$custom-light: #8f5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d187e",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 280.588,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37648,
    "c": 0.1627,
    "h": 311.7
  },
  "luminance": 0.04487
}

Semantic roles & 50–950 ramp

primary
#5D187E
secondary
#65B23F
accent
#EB3D75
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D187E

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

Preview Lab → · Contrast checker → · Palette generator →

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