#5F1D82#5F1D82

#5F1D82 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.162 H 310.7°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#5F1D82
RGBrgb(95, 29, 130)
HSLhsl(279, 64%, 31%)
HSVhsv(279, 78%, 51%)
CMYKcmyk(26.9%, 77.7%, 0%, 49%)
CIE-LABlab(26.52, 46.21, -43.31)
CIE-LCHlch(26.52, 63.33, 316.86°)
OKLaboklab(38.72% 0.1056 -0.1227)
OKLCHoklch(38.72% 0.162 310.7)
XYZxyz(9.1872, 4.9235, 21.5811)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1D82 #40821D
analogous
#2C1D82 #5F1D82 #821D72
triadic
#5F1D82 #825F1D #1D825F
tetradic
#5F1D82 #822C1D #40821D #1D7282
square
#5F1D82 #822C1D #40821D #1D7282
split-complementary
#5F1D82 #72821D #1D822C
monochromatic
#16071E #3A1250 #5F1D82 #8428B4 #A344D5

Accessibility & contrast

On white

10.58
#5F1D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5F1D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1D82
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1D82#FFFFFF#000000##FFFFFF
##5F1D821.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#064080
Tritanopia (blue-blind)
#5A354E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f1d82;
/* rgb */ color: rgb(95, 29, 130);
/* oklch */ color: oklch(38.7% 0.162 310.7);
Tailwind
colors: {
  custom: {
    50: '#9061a7',
    500: '#5f1d82',
    950: '#000000',
  },
}
SCSS
$custom: #5f1d82;
$custom-light: #9061a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1d82",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 279.208,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38722,
    "c": 0.16184,
    "h": 310.7
  },
  "luminance": 0.04923
}

Semantic roles & 50–950 ramp

primary
#5F1D82
secondary
#6CB546
accent
#E7417B
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1D82

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

Preview Lab → · Contrast checker → · Palette generator →

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