#5F168A#5F168A

#5F168A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.8% C 0.177 H 308.4°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#5F168A
RGBrgb(95, 22, 138)
HSLhsl(278, 73%, 31%)
HSVhsv(278, 84%, 54%)
CMYKcmyk(31.2%, 84.1%, 0%, 45.9%)
CIE-LABlab(26.28, 50.55, -48.70)
CIE-LCHlch(26.28, 70.20, 316.07°)
OKLaboklab(38.76% 0.1096 -0.1385)
OKLCHoklch(38.76% 0.177 308.4)
XYZxyz(9.5927, 4.8419, 24.4691)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F168A #418A16
analogous
#25168A #5F168A #8A167B
triadic
#5F168A #8A5F16 #168A5F
tetradic
#5F168A #8A2516 #418A16 #167B8A
square
#5F168A #8A2516 #418A16 #167B8A
split-complementary
#5F168A #7B8A16 #168A25
monochromatic
#160520 #3B0E55 #5F168A #831EBF #A33BE0

Accessibility & contrast

On white

10.67
#5F168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5F168A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F168A
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F168A#FFFFFF#000000##FFFFFF
##5F168A1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#583551
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f168a;
/* rgb */ color: rgb(95, 22, 138);
/* oklch */ color: oklch(38.8% 0.177 308.4);
Tailwind
colors: {
  custom: {
    50: '#915ead',
    500: '#5f168a',
    950: '#000000',
  },
}
SCSS
$custom: #5f168a;
$custom-light: #915ead;
$custom-dark: #000000;
JSON
{
  "hex": "#5f168a",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 277.759,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38759,
    "c": 0.17662,
    "h": 308.4
  },
  "luminance": 0.04842
}

Semantic roles & 50–950 ramp

primary
#5F168A
secondary
#6DBE3E
accent
#EF397C
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F168A

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

Preview Lab → · Contrast checker → · Palette generator →

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