#5F0F54#5F0F54

#5F0F54 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.136 H 334.6°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#5F0F54
RGBrgb(95, 15, 84)
HSLhsl(308, 73%, 22%)
HSVhsv(308, 84%, 37%)
CMYKcmyk(0%, 84.2%, 11.6%, 62.7%)
CIE-LABlab(21.64, 42.15, -21.26)
CIE-LCHlch(21.64, 47.21, 333.23°)
OKLaboklab(34.25% 0.1229 -0.0582)
OKLCHoklch(34.25% 0.136 334.6)
XYZxyz(6.4905, 3.4152, 8.7032)
Luminance0.0341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0F54 #0F5F1A
analogous
#420F5F #5F0F54 #5F0F2C
triadic
#5F0F54 #545F0F #0F545F
tetradic
#5F0F54 #5F420F #0F5F1A #0F2C5F
square
#5F0F54 #5F420F #0F5F1A #0F2C5F
split-complementary
#5F0F54 #2C5F0F #0F5F42
monochromatic
#1A0417 #2A0725 #5F0F54 #941783 #C920B1

Accessibility & contrast

On white

12.48
#5F0F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5F0F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0F54
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0F54#FFFFFF#000000##FFFFFF
##5F0F541.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2C56
Deuteranopia (green-blind)
#2D3852
Tritanopia (blue-blind)
#641731
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f0f54;
/* rgb */ color: rgb(95, 15, 84);
/* oklch */ color: oklch(34.3% 0.136 334.6);
Tailwind
colors: {
  custom: {
    50: '#905984',
    500: '#5f0f54',
    950: '#000000',
  },
}
SCSS
$custom: #5f0f54;
$custom-light: #905984;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0f54",
  "rgb": {
    "r": 95,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 308.25,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34254,
    "c": 0.13596,
    "h": 334.6
  },
  "luminance": 0.03415
}

Semantic roles & 50–950 ramp

primary
#5F0F54
secondary
#329840
accent
#EF5238
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F0F54

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

Preview Lab → · Contrast checker → · Palette generator →

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