#5F1A7F#5F1A7F

#5F1A7F is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.2% C 0.162 H 312.2°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#5F1A7F
RGBrgb(95, 26, 127)
HSLhsl(281, 66%, 30%)
HSVhsv(281, 80%, 50%)
CMYKcmyk(25.2%, 79.5%, 0%, 50.2%)
CIE-LABlab(25.87, 46.71, -42.45)
CIE-LCHlch(25.87, 63.12, 317.73°)
OKLaboklab(38.2% 0.109 -0.1202)
OKLCHoklch(38.2% 0.162 312.2)
XYZxyz(8.9188, 4.7042, 20.5127)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1A7F #3A7F1A
analogous
#2C1A7F #5F1A7F #7F1A6D
triadic
#5F1A7F #7F5F1A #1A7F5F
tetradic
#5F1A7F #7F2C1A #3A7F1A #1A6D7F
square
#5F1A7F #7F2C1A #3A7F1A #1A6D7F
split-complementary
#5F1A7F #6D7F1A #1A7F2C
monochromatic
#130519 #39104C #5F1A7F #8524B2 #A63CD7

Accessibility & contrast

On white

10.82
#5F1A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5F1A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1A7F
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1A7F#FFFFFF#000000##FFFFFF
##5F1A7F1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#083F7D
Tritanopia (blue-blind)
#5B324C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f1a7f;
/* rgb */ color: rgb(95, 26, 127);
/* oklch */ color: oklch(38.2% 0.162 312.2);
Tailwind
colors: {
  custom: {
    50: '#905fa5',
    500: '#5f1a7f',
    950: '#000000',
  },
}
SCSS
$custom: #5f1a7f;
$custom-light: #905fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1a7f",
  "rgb": {
    "r": 95,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 280.99,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.38198,
    "c": 0.16221,
    "h": 312.2
  },
  "luminance": 0.04704
}

Semantic roles & 50–950 ramp

primary
#5F1A7F
secondary
#66B342
accent
#E93F75
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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