#5F1261#5F1261

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

Color values

HEX#5F1261
RGBrgb(95, 18, 97)
HSLhsl(298, 69%, 23%)
HSVhsv(298, 81%, 38%)
CMYKcmyk(2.1%, 81.4%, 0%, 62%)
CIE-LABlab(22.75, 43.46, -28.14)
CIE-LCHlch(22.75, 51.78, 327.08°)
OKLaboklab(35.31% 0.1202 -0.0782)
OKLCHoklch(35.31% 0.143 327)
XYZxyz(7.0932, 3.7291, 11.6531)
Luminance0.0373 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1261 #146112
analogous
#371261 #5F1261 #61123B
triadic
#5F1261 #615F12 #12615F
tetradic
#5F1261 #613712 #146112 #123B61
square
#5F1261 #613712 #146112 #123B61
split-complementary
#5F1261 #3B6112 #126137
monochromatic
#19051A #2C082D #5F1261 #921C95 #C425C8

Accessibility & contrast

On white

12.03
#5F1261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5F1261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1261
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1261#FFFFFF#000000##FFFFFF
##5F12611.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003063
Deuteranopia (green-blind)
#273A5F
Tritanopia (blue-blind)
#622039
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f1261;
/* rgb */ color: rgb(95, 18, 97);
/* oklch */ color: oklch(35.3% 0.143 327.0);
Tailwind
colors: {
  custom: {
    50: '#8f5a8e',
    500: '#5f1261',
    950: '#000000',
  },
}
SCSS
$custom: #5f1261;
$custom-light: #8f5a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1261",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 97
  },
  "hsl": {
    "h": 298.481,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.35309,
    "c": 0.1434,
    "h": 327
  },
  "luminance": 0.03729
}

Semantic roles & 50–950 ramp

primary
#5F1261
secondary
#389936
accent
#EC3C41
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F1261

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

Preview Lab → · Contrast checker → · Palette generator →

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