#5F1280#5F1280

#5F1280 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.6% C 0.171 H 312.4°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#5F1280
RGBrgb(95, 18, 128)
HSLhsl(282, 75%, 29%)
HSVhsv(282, 86%, 50%)
CMYKcmyk(25.8%, 85.9%, 0%, 49.8%)
CIE-LABlab(25.03, 49.62, -44.46)
CIE-LCHlch(25.03, 66.63, 318.14°)
OKLaboklab(37.63% 0.1152 -0.126)
OKLCHoklch(37.63% 0.171 312.4)
XYZxyz(8.8312, 4.4243, 20.8067)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1280 #338012
analogous
#281280 #5F1280 #80126A
triadic
#5F1280 #805F12 #12805F
tetradic
#5F1280 #802812 #338012 #126A80
square
#5F1280 #802812 #338012 #126A80
split-complementary
#5F1280 #6A8012 #128028
monochromatic
#14041B #370A4A #5F1280 #871AB6 #AB2BE1

Accessibility & contrast

On white

11.14
#5F1280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5F1280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1280
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1280#FFFFFF#000000##FFFFFF
##5F12801.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#003D7E
Tritanopia (blue-blind)
#5B2F4B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f1280;
/* rgb */ color: rgb(95, 18, 128);
/* oklch */ color: oklch(37.6% 0.171 312.4);
Tailwind
colors: {
  custom: {
    50: '#915ca6',
    500: '#5f1280',
    950: '#000000',
  },
}
SCSS
$custom: #5f1280;
$custom-light: #915ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1280",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 282,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37629,
    "c": 0.17076,
    "h": 312.4
  },
  "luminance": 0.04424
}

Semantic roles & 50–950 ramp

primary
#5F1280
secondary
#5EB638
accent
#F2366E
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1280

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

Preview Lab → · Contrast checker → · Palette generator →

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