#5F168C#5F168C

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

Color values

HEX#5F168C
RGBrgb(95, 22, 140)
HSLhsl(277, 73%, 32%)
HSVhsv(277, 84%, 55%)
CMYKcmyk(32.1%, 84.3%, 0%, 45.1%)
CIE-LABlab(26.45, 51.00, -49.67)
CIE-LCHlch(26.45, 71.19, 315.76°)
OKLaboklab(38.93% 0.109 -0.1413)
OKLCHoklch(38.93% 0.179 307.6)
XYZxyz(9.7388, 4.9003, 25.2387)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F168C #438C16
analogous
#24168C #5F168C #8C167E
triadic
#5F168C #8C5F16 #168C5F
tetradic
#5F168C #8C2416 #438C16 #167E8C
square
#5F168C #8C2416 #438C16 #167E8C
split-complementary
#5F168C #7E8C16 #168C24
monochromatic
#170522 #3B0E57 #5F168C #831EC1 #A23CE0

Accessibility & contrast

On white

10.61
#5F168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5F168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F168C
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F168C#FFFFFF#000000##FFFFFF
##5F168C1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#573653
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f168c;
/* rgb */ color: rgb(95, 22, 140);
/* oklch */ color: oklch(38.9% 0.179 307.6);
Tailwind
colors: {
  custom: {
    50: '#925eae',
    500: '#5f168c',
    950: '#000000',
  },
}
SCSS
$custom: #5f168c;
$custom-light: #925eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f168c",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 277.119,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38929,
    "c": 0.17851,
    "h": 307.6
  },
  "luminance": 0.049
}

Semantic roles & 50–950 ramp

primary
#5F168C
secondary
#70C03E
accent
#F0387E
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F168C

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

Preview Lab → · Contrast checker → · Palette generator →

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