#5F1882#5F1882

#5F1882 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.3% C 0.167 H 311.2°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#5F1882
RGBrgb(95, 24, 130)
HSLhsl(280, 69%, 30%)
HSVhsv(280, 82%, 51%)
CMYKcmyk(26.9%, 81.5%, 0%, 49%)
CIE-LABlab(25.86, 48.11, -44.38)
CIE-LCHlch(25.86, 65.45, 317.31°)
OKLaboklab(38.26% 0.1101 -0.1258)
OKLCHoklch(38.26% 0.167 311.2)
XYZxyz(9.0744, 4.6981, 21.5436)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1882 #3B8218
analogous
#2A1882 #5F1882 #821870
triadic
#5F1882 #825F18 #18825F
tetradic
#5F1882 #822A18 #3B8218 #187082
square
#5F1882 #822A18 #3B8218 #187082
split-complementary
#5F1882 #708218 #18822A
monochromatic
#13051B #390E4E #5F1882 #8522B6 #A63ADB

Accessibility & contrast

On white

10.83
#5F1882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1882
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1882#FFFFFF#000000##FFFFFF
##5F18821.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#5A324D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f1882;
/* rgb */ color: rgb(95, 24, 130);
/* oklch */ color: oklch(38.3% 0.167 311.2);
Tailwind
colors: {
  custom: {
    50: '#915ea7',
    500: '#5f1882',
    950: '#000000',
  },
}
SCSS
$custom: #5f1882;
$custom-light: #915ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1882",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 280.189,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38259,
    "c": 0.16716,
    "h": 311.2
  },
  "luminance": 0.04698
}

Semantic roles & 50–950 ramp

primary
#5F1882
secondary
#67B640
accent
#EC3C76
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1882

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

Preview Lab → · Contrast checker → · Palette generator →

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