#5F105A#5F105A

#5F105A is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.7% C 0.140 H 331.0°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#5F105A
RGBrgb(95, 16, 90)
HSLhsl(304, 71%, 22%)
HSVhsv(304, 83%, 37%)
CMYKcmyk(0%, 83.2%, 5.3%, 62.7%)
CIE-LABlab(22.10, 42.85, -24.55)
CIE-LCHlch(22.10, 49.38, 330.19°)
OKLaboklab(34.7% 0.1222 -0.0677)
OKLCHoklch(34.7% 0.14 331)
XYZxyz(6.7501, 3.5422, 9.9991)
Luminance0.0354 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F105A #105F15
analogous
#3D105F #5F105A #5F1033
triadic
#5F105A #5A5F10 #105A5F
tetradic
#5F105A #5F3D10 #105F15 #10335F
square
#5F105A #5F3D10 #105F15 #10335F
split-complementary
#5F105A #335F10 #105F3D
monochromatic
#1A0419 #2B0728 #5F105A #93198C #C822BD

Accessibility & contrast

On white

12.29
#5F105A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5F105A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F105A
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F105A#FFFFFF#000000##FFFFFF
##5F105A1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062E5C
Deuteranopia (green-blind)
#2A3958
Tritanopia (blue-blind)
#631B35
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f105a;
/* rgb */ color: rgb(95, 16, 90);
/* oklch */ color: oklch(34.7% 0.140 331.0);
Tailwind
colors: {
  custom: {
    50: '#8f5989',
    500: '#5f105a',
    950: '#000000',
  },
}
SCSS
$custom: #5f105a;
$custom-light: #8f5989;
$custom-dark: #000000;
JSON
{
  "hex": "#5f105a",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 90
  },
  "hsl": {
    "h": 303.797,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34698,
    "c": 0.13968,
    "h": 331
  },
  "luminance": 0.03542
}

Semantic roles & 50–950 ramp

primary
#5F105A
secondary
#339839
accent
#EE453A
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F105A

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

Preview Lab → · Contrast checker → · Palette generator →

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