#5F1281#5F1281

#5F1281 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.7% C 0.172 H 312.1°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#5F1281
RGBrgb(95, 18, 129)
HSLhsl(282, 76%, 29%)
HSVhsv(282, 86%, 51%)
CMYKcmyk(26.4%, 86%, 0%, 49.4%)
CIE-LABlab(25.11, 49.83, -44.96)
CIE-LCHlch(25.11, 67.12, 317.94°)
OKLaboklab(37.71% 0.115 -0.1275)
OKLCHoklch(37.71% 0.172 312.1)
XYZxyz(8.8973, 4.4507, 21.1550)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1281 #348112
analogous
#281281 #5F1281 #81126C
triadic
#5F1281 #815F12 #12815F
tetradic
#5F1281 #812812 #348112 #126C81
square
#5F1281 #812812 #348112 #126C81
split-complementary
#5F1281 #6C8112 #128128
monochromatic
#14041B #370B4B #5F1281 #8719B7 #AA2CE2

Accessibility & contrast

On white

11.11
#5F1281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1281
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1281#FFFFFF#000000##FFFFFF
##5F12811.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#003D7F
Tritanopia (blue-blind)
#5B304C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f1281;
/* rgb */ color: rgb(95, 18, 129);
/* oklch */ color: oklch(37.7% 0.172 312.1);
Tailwind
colors: {
  custom: {
    50: '#915ca6',
    500: '#5f1281',
    950: '#000000',
  },
}
SCSS
$custom: #5f1281;
$custom-light: #915ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1281",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 281.622,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37711,
    "c": 0.17167,
    "h": 312.1
  },
  "luminance": 0.0445
}

Semantic roles & 50–950 ramp

primary
#5F1281
secondary
#5FB738
accent
#F2366F
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1281

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

Preview Lab → · Contrast checker → · Palette generator →

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