#5D167B#5D167B

#5D167B is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.162 H 313.1°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#5D167B
RGBrgb(93, 22, 123)
HSLhsl(282, 70%, 28%)
HSVhsv(282, 82%, 48%)
CMYKcmyk(24.4%, 82.1%, 0%, 51.8%)
CIE-LABlab(24.74, 46.91, -41.78)
CIE-LCHlch(24.74, 62.81, 318.31°)
OKLaboklab(37.24% 0.1106 -0.1182)
OKLCHoklch(37.24% 0.162 313.1)
XYZxyz(8.3756, 4.3313, 19.1299)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D167B #347B16
analogous
#2A167B #5D167B #7B1666
triadic
#5D167B #7B5D16 #167B5D
tetradic
#5D167B #7B2A16 #347B16 #16667B
square
#5D167B #7B2A16 #347B16 #16667B
split-complementary
#5D167B #667B16 #167B2A
monochromatic
#14051A #360D47 #5D167B #841FAF #A831DA

Accessibility & contrast

On white

11.25
#5D167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5D167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D167B
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D167B#FFFFFF#000000##FFFFFF
##5D167B1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#063C79
Tritanopia (blue-blind)
#5A2F49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d167b;
/* rgb */ color: rgb(93, 22, 123);
/* oklch */ color: oklch(37.2% 0.162 313.1);
Tailwind
colors: {
  custom: {
    50: '#8f5da2',
    500: '#5d167b',
    950: '#000000',
  },
}
SCSS
$custom: #5d167b;
$custom-light: #8f5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d167b",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 282.178,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37235,
    "c": 0.16186,
    "h": 313.1
  },
  "luminance": 0.04331
}

Semantic roles & 50–950 ramp

primary
#5D167B
secondary
#5FB03D
accent
#EC3B70
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D167B

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

Preview Lab → · Contrast checker → · Palette generator →

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