#5F168D#5F168D

#5F168D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.0% C 0.179 H 307.3°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#5F168D
RGBrgb(95, 22, 141)
HSLhsl(277, 73%, 32%)
HSVhsv(277, 84%, 55%)
CMYKcmyk(32.6%, 84.4%, 0%, 44.7%)
CIE-LABlab(26.53, 51.22, -50.15)
CIE-LCHlch(26.53, 71.69, 315.61°)
OKLaboklab(39.02% 0.1087 -0.1428)
OKLCHoklch(39.02% 0.179 307.3)
XYZxyz(9.8129, 4.9299, 25.6288)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F168D #448D16
analogous
#24168D #5F168D #8D1680
triadic
#5F168D #8D5F16 #168D5F
tetradic
#5F168D #8D2416 #448D16 #16808D
square
#5F168D #8D2416 #448D16 #16808D
split-complementary
#5F168D #808D16 #168D24
monochromatic
#180523 #3B0E58 #5F168D #831EC2 #A13DE1

Accessibility & contrast

On white

10.57
#5F168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5F168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F168D
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F168D#FFFFFF#000000##FFFFFF
##5F168D1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#573753
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f168d;
/* rgb */ color: rgb(95, 22, 141);
/* oklch */ color: oklch(39.0% 0.179 307.3);
Tailwind
colors: {
  custom: {
    50: '#925eaf',
    500: '#5f168d',
    950: '#000000',
  },
}
SCSS
$custom: #5f168d;
$custom-light: #925eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f168d",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 276.807,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39015,
    "c": 0.17945,
    "h": 307.3
  },
  "luminance": 0.0493
}

Semantic roles & 50–950 ramp

primary
#5F168D
secondary
#71C13E
accent
#F0387F
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F168D

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

Preview Lab → · Contrast checker → · Palette generator →

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