#5F1260#5F1260

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

Color values

HEX#5F1260
RGBrgb(95, 18, 96)
HSLhsl(299, 68%, 22%)
HSVhsv(299, 81%, 38%)
CMYKcmyk(1%, 81.3%, 0%, 62.4%)
CIE-LABlab(22.69, 43.28, -27.58)
CIE-LCHlch(22.69, 51.32, 327.49°)
OKLaboklab(35.24% 0.1203 -0.0766)
OKLCHoklch(35.24% 0.143 327.5)
XYZxyz(7.0468, 3.7105, 11.4091)
Luminance0.0371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1260 #136012
analogous
#381260 #5F1260 #60123A
triadic
#5F1260 #605F12 #12605F
tetradic
#5F1260 #603812 #136012 #123A60
square
#5F1260 #603812 #136012 #123A60
split-complementary
#5F1260 #3A6012 #126038
monochromatic
#1A051A #2C082C #5F1260 #921C94 #C525C7

Accessibility & contrast

On white

12.06
#5F1260 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1260
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1260#FFFFFF#000000##FFFFFF
##5F12601.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003062
Deuteranopia (green-blind)
#273A5E
Tritanopia (blue-blind)
#621F39
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f1260;
/* rgb */ color: rgb(95, 18, 96);
/* oklch */ color: oklch(35.2% 0.143 327.5);
Tailwind
colors: {
  custom: {
    50: '#8f5a8d',
    500: '#5f1260',
    950: '#000000',
  },
}
SCSS
$custom: #5f1260;
$custom-light: #8f5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1260",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 96
  },
  "hsl": {
    "h": 299.231,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.35243,
    "c": 0.14256,
    "h": 327.5
  },
  "luminance": 0.0371
}

Semantic roles & 50–950 ramp

primary
#5F1260
secondary
#379836
accent
#EB3D3F
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F1260

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

Preview Lab → · Contrast checker → · Palette generator →

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