#5F0F4D#5F0F4D

#5F0F4D is a dark, vivid pink. Relative luminance 0.033; OKLCH L 33.9% C 0.131 H 339.2°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#5F0F4D
RGBrgb(95, 15, 77)
HSLhsl(314, 73%, 22%)
HSVhsv(314, 84%, 37%)
CMYKcmyk(0%, 84.2%, 18.9%, 62.7%)
CIE-LABlab(21.25, 41.04, -17.14)
CIE-LCHlch(21.25, 44.48, 337.33°)
OKLaboklab(33.85% 0.1222 -0.0464)
OKLCHoklch(33.85% 0.131 339.2)
XYZxyz(6.2299, 3.3110, 7.3307)
Luminance0.0331 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0F4D #0F5F21
analogous
#490F5F #5F0F4D #5F0F25
triadic
#5F0F4D #4D5F0F #0F4D5F
tetradic
#5F0F4D #5F490F #0F5F21 #0F255F
square
#5F0F4D #5F490F #0F5F21 #0F255F
split-complementary
#5F0F4D #255F0F #0F5F49
monochromatic
#1A0415 #2A0722 #5F0F4D #941778 #C920A3

Accessibility & contrast

On white

12.64
#5F0F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5F0F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0F4D
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0F4D#FFFFFF#000000##FFFFFF
##5F0F4D1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152B4F
Deuteranopia (green-blind)
#30374B
Tritanopia (blue-blind)
#65132D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5f0f4d;
/* rgb */ color: rgb(95, 15, 77);
/* oklch */ color: oklch(33.9% 0.131 339.2);
Tailwind
colors: {
  custom: {
    50: '#90587f',
    500: '#5f0f4d',
    950: '#000000',
  },
}
SCSS
$custom: #5f0f4d;
$custom-light: #90587f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0f4d",
  "rgb": {
    "r": 95,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 313.5,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.33851,
    "c": 0.13075,
    "h": 339.2
  },
  "luminance": 0.0331
}

Semantic roles & 50–950 ramp

primary
#5F0F4D
secondary
#329849
accent
#EF6238
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F0F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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