#5F16A0#5F16A0

#5F16A0 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.7% C 0.198 H 301.2°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#5F16A0
RGBrgb(95, 22, 160)
HSLhsl(272, 76%, 36%)
HSVhsv(272, 86%, 63%)
CMYKcmyk(40.6%, 86.3%, 0%, 37.3%)
CIE-LABlab(28.23, 55.56, -59.05)
CIE-LCHlch(28.23, 81.08, 313.25°)
OKLaboklab(40.71% 0.1024 -0.1689)
OKLCHoklch(40.71% 0.198 301.2)
XYZxyz(11.3498, 5.5447, 33.7232)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F16A0 #57A016
analogous
#1A16A0 #5F16A0 #A0169C
triadic
#5F16A0 #A05F16 #16A05F
tetradic
#5F16A0 #A01A16 #57A016 #169CA0
square
#5F16A0 #A01A16 #57A016 #169CA0
split-complementary
#5F16A0 #9CA016 #16A01A
monochromatic
#1F0734 #3F0F6A #5F16A0 #7F1DD6 #9D4AE6

Accessibility & contrast

On white

9.96
#5F16A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5F16A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F16A0
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F16A0#FFFFFF#000000##FFFFFF
##5F16A01.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#503F5E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f16a0;
/* rgb */ color: rgb(95, 22, 160);
/* oklch */ color: oklch(40.7% 0.198 301.2);
Tailwind
colors: {
  custom: {
    50: '#9360bd',
    500: '#5f16a0',
    950: '#000000',
  },
}
SCSS
$custom: #5f16a0;
$custom-light: #9360bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f16a0",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 160
  },
  "hsl": {
    "h": 271.739,
    "s": 75.824,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40712,
    "c": 0.19752,
    "h": 301.2
  },
  "luminance": 0.05545
}

Semantic roles & 50–950 ramp

primary
#5F16A0
secondary
#85C84A
accent
#F2358E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5F16A0

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

Preview Lab → · Contrast checker → · Palette generator →

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