#5F1081#5F1081

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

Color values

HEX#5F1081
RGBrgb(95, 16, 129)
HSLhsl(282, 78%, 28%)
HSVhsv(282, 88%, 51%)
CMYKcmyk(26.4%, 87.6%, 0%, 49.4%)
CIE-LABlab(24.92, 50.40, -45.27)
CIE-LCHlch(24.92, 67.74, 318.07°)
OKLaboklab(37.58% 0.1163 -0.1284)
OKLCHoklch(37.58% 0.173 312.2)
XYZxyz(8.8663, 4.3887, 21.1447)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1081 #328110
analogous
#261081 #5F1081 #81106A
triadic
#5F1081 #815F10 #10815F
tetradic
#5F1081 #812610 #328110 #106A81
square
#5F1081 #812610 #328110 #106A81
split-complementary
#5F1081 #6A8110 #108126
monochromatic
#14031B #37094B #5F1081 #8717B7 #AB27E4

Accessibility & contrast

On white

11.18
#5F1081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1081
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1081#FFFFFF#000000##FFFFFF
##5F10811.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1081;
/* rgb */ color: rgb(95, 16, 129);
/* oklch */ color: oklch(37.6% 0.173 312.2);
Tailwind
colors: {
  custom: {
    50: '#915ca6',
    500: '#5f1081',
    950: '#000000',
  },
}
SCSS
$custom: #5f1081;
$custom-light: #915ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1081",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 129
  },
  "hsl": {
    "h": 281.947,
    "s": 77.931,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37578,
    "c": 0.17324,
    "h": 312.2
  },
  "luminance": 0.04388
}

Semantic roles & 50–950 ramp

primary
#5F1081
secondary
#5DB736
accent
#F4336D
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5F1081

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

Preview Lab → · Contrast checker → · Palette generator →

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