#5F168E#5F168E

#5F168E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.180 H 306.9°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#5F168E
RGBrgb(95, 22, 142)
HSLhsl(277, 73%, 32%)
HSVhsv(277, 85%, 56%)
CMYKcmyk(33.1%, 84.5%, 0%, 44.3%)
CIE-LABlab(26.62, 51.45, -50.63)
CIE-LCHlch(26.62, 72.18, 315.46°)
OKLaboklab(39.1% 0.1084 -0.1442)
OKLCHoklch(39.1% 0.18 306.9)
XYZxyz(9.8876, 4.9598, 26.0224)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F168E #458E16
analogous
#23168E #5F168E #8E1681
triadic
#5F168E #8E5F16 #168E5F
tetradic
#5F168E #8E2316 #458E16 #16818E
square
#5F168E #8E2316 #458E16 #16818E
split-complementary
#5F168E #818E16 #168E23
monochromatic
#180624 #3C0E59 #5F168E #821EC3 #A13DE1

Accessibility & contrast

On white

10.54
#5F168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F168E
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F168E#FFFFFF#000000##FFFFFF
##5F168E1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#573754
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f168e;
/* rgb */ color: rgb(95, 22, 142);
/* oklch */ color: oklch(39.1% 0.180 306.9);
Tailwind
colors: {
  custom: {
    50: '#925eb0',
    500: '#5f168e',
    950: '#000000',
  },
}
SCSS
$custom: #5f168e;
$custom-light: #925eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f168e",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 276.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39101,
    "c": 0.1804,
    "h": 306.9
  },
  "luminance": 0.0496
}

Semantic roles & 50–950 ramp

primary
#5F168E
secondary
#72C13F
accent
#F03880
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5F168E

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

Preview Lab → · Contrast checker → · Palette generator →

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