#5F1982#5F1982

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

Color values

HEX#5F1982
RGBrgb(95, 25, 130)
HSLhsl(280, 68%, 30%)
HSVhsv(280, 81%, 51%)
CMYKcmyk(26.9%, 80.8%, 0%, 49%)
CIE-LABlab(25.98, 47.75, -44.17)
CIE-LCHlch(25.98, 65.05, 317.23°)
OKLaboklab(38.35% 0.1092 -0.1252)
OKLCHoklch(38.35% 0.166 311.1)
XYZxyz(9.0954, 4.7401, 21.5506)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1982 #3C8219
analogous
#2A1982 #5F1982 #821970
triadic
#5F1982 #825F19 #19825F
tetradic
#5F1982 #822A19 #3C8219 #197082
square
#5F1982 #822A19 #3C8219 #197082
split-complementary
#5F1982 #708219 #19822A
monochromatic
#14051B #390F4F #5F1982 #8523B5 #A53CD9

Accessibility & contrast

On white

10.78
#5F1982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5F1982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1982
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1982#FFFFFF#000000##FFFFFF
##5F19821.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1982;
/* rgb */ color: rgb(95, 25, 130);
/* oklch */ color: oklch(38.3% 0.166 311.1);
Tailwind
colors: {
  custom: {
    50: '#915fa7',
    500: '#5f1982',
    950: '#000000',
  },
}
SCSS
$custom: #5f1982;
$custom-light: #915fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1982",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 280,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38346,
    "c": 0.16615,
    "h": 311.1
  },
  "luminance": 0.0474
}

Semantic roles & 50–950 ramp

primary
#5F1982
secondary
#68B641
accent
#EB3D77
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1982

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

Preview Lab → · Contrast checker → · Palette generator →

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