#5F147F#5F147F

#5F147F is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.7% C 0.168 H 312.7°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#5F147F
RGBrgb(95, 20, 127)
HSLhsl(282, 73%, 29%)
HSVhsv(282, 84%, 50%)
CMYKcmyk(25.2%, 84.3%, 0%, 50.2%)
CIE-LABlab(25.16, 48.80, -43.62)
CIE-LCHlch(25.16, 65.45, 318.21°)
OKLaboklab(37.69% 0.114 -0.1236)
OKLCHoklch(37.69% 0.168 312.7)
XYZxyz(8.7995, 4.4658, 20.4730)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F147F #347F14
analogous
#2A147F #5F147F #7F146A
triadic
#5F147F #7F5F14 #147F5F
tetradic
#5F147F #7F2A14 #347F14 #146A7F
square
#5F147F #7F2A14 #347F14 #146A7F
split-complementary
#5F147F #6A7F14 #147F2A
monochromatic
#14041A #370C4A #5F147F #871CB4 #AA2FDE

Accessibility & contrast

On white

11.09
#5F147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5F147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F147F
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F147F#FFFFFF#000000##FFFFFF
##5F147F1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#5B2F4B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f147f;
/* rgb */ color: rgb(95, 20, 127);
/* oklch */ color: oklch(37.7% 0.168 312.7);
Tailwind
colors: {
  custom: {
    50: '#915da5',
    500: '#5f147f',
    950: '#000000',
  },
}
SCSS
$custom: #5f147f;
$custom-light: #915da5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f147f",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 282.056,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37693,
    "c": 0.16813,
    "h": 312.7
  },
  "luminance": 0.04466
}

Semantic roles & 50–950 ramp

primary
#5F147F
secondary
#5FB43B
accent
#EF386F
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F147F

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

Preview Lab → · Contrast checker → · Palette generator →

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