#5F177B#5F177B

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

Color values

HEX#5F177B
RGBrgb(95, 23, 123)
HSLhsl(283, 68%, 29%)
HSVhsv(283, 81%, 48%)
CMYKcmyk(22.8%, 81.3%, 0%, 51.8%)
CIE-LABlab(25.19, 46.94, -41.04)
CIE-LCHlch(25.19, 62.35, 318.84°)
OKLaboklab(37.62% 0.1125 -0.116)
OKLCHoklch(37.62% 0.162 314.1)
XYZxyz(8.6002, 4.4760, 19.1460)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F177B #337B17
analogous
#2D177B #5F177B #7B1765
triadic
#5F177B #7B5F17 #177B5F
tetradic
#5F177B #7B2D17 #337B17 #17657B
square
#5F177B #7B2D17 #337B17 #17657B
split-complementary
#5F177B #657B17 #177B2D
monochromatic
#14051A #370D47 #5F177B #8721AF #AB33D9

Accessibility & contrast

On white

11.08
#5F177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F177B
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F177B#FFFFFF#000000##FFFFFF
##5F177B1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#0E3D79
Tritanopia (blue-blind)
#5C2F49
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f177b;
/* rgb */ color: rgb(95, 23, 123);
/* oklch */ color: oklch(37.6% 0.162 314.1);
Tailwind
colors: {
  custom: {
    50: '#905ea2',
    500: '#5f177b',
    950: '#000000',
  },
}
SCSS
$custom: #5f177b;
$custom-light: #905ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f177b",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 283.2,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37616,
    "c": 0.16154,
    "h": 314.1
  },
  "luminance": 0.04476
}

Semantic roles & 50–950 ramp

primary
#5F177B
secondary
#5EB03E
accent
#EB3C6D
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F177B

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

Preview Lab → · Contrast checker → · Palette generator →

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