#5F1162#5F1162

#5F1162 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.145 H 326.4°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#5F1162
RGBrgb(95, 17, 98)
HSLhsl(298, 70%, 23%)
HSVhsv(298, 83%, 38%)
CMYKcmyk(3.1%, 82.7%, 0%, 61.6%)
CIE-LABlab(22.71, 43.96, -28.87)
CIE-LCHlch(22.71, 52.59, 326.71°)
OKLaboklab(35.3% 0.1211 -0.0803)
OKLCHoklch(35.3% 0.145 326.4)
XYZxyz(7.1242, 3.7161, 11.8950)
Luminance0.0372 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1162 #146211
analogous
#371162 #5F1162 #62113C
triadic
#5F1162 #625F11 #11625F
tetradic
#5F1162 #623711 #146211 #113C62
square
#5F1162 #623711 #146211 #113C62
split-complementary
#5F1162 #3C6211 #116237
monochromatic
#19051A #2C082E #5F1162 #921A96 #C423CA

Accessibility & contrast

On white

12.05
#5F1162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5F1162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1162
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1162#FFFFFF#000000##FFFFFF
##5F11621.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003064
Deuteranopia (green-blind)
#263A60
Tritanopia (blue-blind)
#622039
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f1162;
/* rgb */ color: rgb(95, 17, 98);
/* oklch */ color: oklch(35.3% 0.145 326.4);
Tailwind
colors: {
  custom: {
    50: '#905a8f',
    500: '#5f1162',
    950: '#000000',
  },
}
SCSS
$custom: #5f1162;
$custom-light: #905a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1162",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 297.778,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.35298,
    "c": 0.14527,
    "h": 326.4
  },
  "luminance": 0.03716
}

Semantic roles & 50–950 ramp

primary
#5F1162
secondary
#389A34
accent
#ED3B41
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F1162

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

Preview Lab → · Contrast checker → · Palette generator →

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