#5F1362#5F1362

#5F1362 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.143 H 326.4°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#5F1362
RGBrgb(95, 19, 98)
HSLhsl(298, 68%, 23%)
HSVhsv(298, 81%, 38%)
CMYKcmyk(3.1%, 80.6%, 0%, 61.6%)
CIE-LABlab(22.93, 43.32, -28.51)
CIE-LCHlch(22.93, 51.86, 326.65°)
OKLaboklab(35.46% 0.1193 -0.0793)
OKLCHoklch(35.46% 0.143 326.4)
XYZxyz(7.1567, 3.7810, 11.9058)
Luminance0.0378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1362 #166213
analogous
#381362 #5F1362 #62133D
triadic
#5F1362 #625F13 #13625F
tetradic
#5F1362 #623813 #166213 #133D62
square
#5F1362 #623813 #166213 #133D62
split-complementary
#5F1362 #3D6213 #136238
monochromatic
#19051A #2D092F #5F1362 #911D95 #C227C9

Accessibility & contrast

On white

11.96
#5F1362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5F1362 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1362
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1362#FFFFFF#000000##FFFFFF
##5F13621.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003164
Deuteranopia (green-blind)
#263A60
Tritanopia (blue-blind)
#62213A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f1362;
/* rgb */ color: rgb(95, 19, 98);
/* oklch */ color: oklch(35.5% 0.143 326.4);
Tailwind
colors: {
  custom: {
    50: '#8f5b8f',
    500: '#5f1362',
    950: '#000000',
  },
}
SCSS
$custom: #5f1362;
$custom-light: #8f5b8f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1362",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 98
  },
  "hsl": {
    "h": 297.722,
    "s": 67.521,
    "l": 22.941
  },
  "oklch": {
    "l": 0.35458,
    "c": 0.1432,
    "h": 326.4
  },
  "luminance": 0.0378
}

Semantic roles & 50–950 ramp

primary
#5F1362
secondary
#3B9A37
accent
#EA3D44
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F1362

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

Preview Lab → · Contrast checker → · Palette generator →

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