#5F168F#5F168F

#5F168F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.181 H 306.6°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#5F168F
RGBrgb(95, 22, 143)
HSLhsl(276, 73%, 32%)
HSVhsv(276, 85%, 56%)
CMYKcmyk(33.6%, 84.6%, 0%, 43.9%)
CIE-LABlab(26.71, 51.67, -51.11)
CIE-LCHlch(26.71, 72.68, 315.31°)
OKLaboklab(39.19% 0.1081 -0.1456)
OKLCHoklch(39.19% 0.181 306.6)
XYZxyz(9.9631, 4.9900, 26.4196)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F168F #468F16
analogous
#22168F #5F168F #8F1683
triadic
#5F168F #8F5F16 #168F5F
tetradic
#5F168F #8F2216 #468F16 #16838F
square
#5F168F #8F2216 #468F16 #16838F
split-complementary
#5F168F #838F16 #168F22
monochromatic
#190625 #3C0E5A #5F168F #821EC4 #A13EE1

Accessibility & contrast

On white

10.51
#5F168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5F168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F168F
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F168F#FFFFFF#000000##FFFFFF
##5F168F1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#563854
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f168f;
/* rgb */ color: rgb(95, 22, 143);
/* oklch */ color: oklch(39.2% 0.181 306.6);
Tailwind
colors: {
  custom: {
    50: '#925eb1',
    500: '#5f168f',
    950: '#000000',
  },
}
SCSS
$custom: #5f168f;
$custom-light: #925eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f168f",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 276.198,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39188,
    "c": 0.18134,
    "h": 306.6
  },
  "luminance": 0.0499
}

Semantic roles & 50–950 ramp

primary
#5F168F
secondary
#73C13F
accent
#F03881
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #5F168F

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

Preview Lab → · Contrast checker → · Palette generator →

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