#5F168B#5F168B

#5F168B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.178 H 308.0°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#5F168B
RGBrgb(95, 22, 139)
HSLhsl(277, 73%, 32%)
HSVhsv(277, 84%, 55%)
CMYKcmyk(31.7%, 84.2%, 0%, 45.5%)
CIE-LABlab(26.36, 50.78, -49.19)
CIE-LCHlch(26.36, 70.69, 315.91°)
OKLaboklab(38.84% 0.1093 -0.1399)
OKLCHoklch(38.84% 0.178 308)
XYZxyz(9.6654, 4.8709, 24.8521)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F168B #428B16
analogous
#25168B #5F168B #8B167D
triadic
#5F168B #8B5F16 #168B5F
tetradic
#5F168B #8B2516 #428B16 #167D8B
square
#5F168B #8B2516 #428B16 #167D8B
split-complementary
#5F168B #7D8B16 #168B25
monochromatic
#170521 #3B0E56 #5F168B #831EC0 #A23BE0

Accessibility & contrast

On white

10.64
#5F168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F168B
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F168B#FFFFFF#000000##FFFFFF
##5F168B1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#583652
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f168b;
/* rgb */ color: rgb(95, 22, 139);
/* oklch */ color: oklch(38.8% 0.178 308.0);
Tailwind
colors: {
  custom: {
    50: '#915eae',
    500: '#5f168b',
    950: '#000000',
  },
}
SCSS
$custom: #5f168b;
$custom-light: #915eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f168b",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 277.436,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38844,
    "c": 0.17756,
    "h": 308
  },
  "luminance": 0.04871
}

Semantic roles & 50–950 ramp

primary
#5F168B
secondary
#6EBF3E
accent
#EF387D
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F168B

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

Preview Lab → · Contrast checker → · Palette generator →

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