#5F0F5A#5F0F5A

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

Color values

HEX#5F0F5A
RGBrgb(95, 15, 90)
HSLhsl(304, 73%, 22%)
HSVhsv(304, 84%, 37%)
CMYKcmyk(0%, 84.2%, 5.3%, 62.7%)
CIE-LABlab(21.99, 43.15, -24.71)
CIE-LCHlch(21.99, 49.73, 330.20°)
OKLaboklab(34.62% 0.123 -0.0682)
OKLCHoklch(34.62% 0.141 331)
XYZxyz(6.7356, 3.5133, 9.9943)
Luminance0.0351 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0F5A #0F5F14
analogous
#3C0F5F #5F0F5A #5F0F32
triadic
#5F0F5A #5A5F0F #0F5A5F
tetradic
#5F0F5A #5F3C0F #0F5F14 #0F325F
square
#5F0F5A #5F3C0F #0F5F14 #0F325F
split-complementary
#5F0F5A #325F0F #0F5F3C
monochromatic
#1A0419 #2A0728 #5F0F5A #94178C #C920BE

Accessibility & contrast

On white

12.33
#5F0F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5F0F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0F5A
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0F5A#FFFFFF#000000##FFFFFF
##5F0F5A1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052E5C
Deuteranopia (green-blind)
#2A3858
Tritanopia (blue-blind)
#631A34
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f0f5a;
/* rgb */ color: rgb(95, 15, 90);
/* oklch */ color: oklch(34.6% 0.141 331.0);
Tailwind
colors: {
  custom: {
    50: '#905989',
    500: '#5f0f5a',
    950: '#000000',
  },
}
SCSS
$custom: #5f0f5a;
$custom-light: #905989;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0f5a",
  "rgb": {
    "r": 95,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 303.75,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34624,
    "c": 0.14067,
    "h": 331
  },
  "luminance": 0.03513
}

Semantic roles & 50–950 ramp

primary
#5F0F5A
secondary
#329838
accent
#EF4438
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F0F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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