#5F1062#5F1062

#5F1062 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.146 H 326.5°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#5F1062
RGBrgb(95, 16, 98)
HSLhsl(298, 72%, 22%)
HSVhsv(298, 84%, 38%)
CMYKcmyk(3.1%, 83.7%, 0%, 61.6%)
CIE-LABlab(22.60, 44.27, -29.04)
CIE-LCHlch(22.60, 52.94, 326.74°)
OKLaboklab(35.22% 0.1219 -0.0808)
OKLCHoklch(35.22% 0.146 326.5)
XYZxyz(7.1091, 3.6858, 11.8899)
Luminance0.0369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1062 #136210
analogous
#361062 #5F1062 #62103C
triadic
#5F1062 #625F10 #10625F
tetradic
#5F1062 #623610 #136210 #103C62
square
#5F1062 #623610 #136210 #103C62
split-complementary
#5F1062 #3C6210 #106236
monochromatic
#1A041A #2C072D #5F1062 #921997 #C521CB

Accessibility & contrast

On white

12.09
#5F1062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1062
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1062#FFFFFF#000000##FFFFFF
##5F10621.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003064
Deuteranopia (green-blind)
#253960
Tritanopia (blue-blind)
#621F39
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f1062;
/* rgb */ color: rgb(95, 16, 98);
/* oklch */ color: oklch(35.2% 0.146 326.5);
Tailwind
colors: {
  custom: {
    50: '#905a8f',
    500: '#5f1062',
    950: '#000000',
  },
}
SCSS
$custom: #5f1062;
$custom-light: #905a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1062",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 297.805,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.35223,
    "c": 0.14625,
    "h": 326.5
  },
  "luminance": 0.03685
}

Semantic roles & 50–950 ramp

primary
#5F1062
secondary
#379B33
accent
#EF3940
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F1062

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

Preview Lab → · Contrast checker → · Palette generator →

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