#5F1A82#5F1A82

#5F1A82 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.165 H 311.0°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#5F1A82
RGBrgb(95, 26, 130)
HSLhsl(280, 67%, 31%)
HSVhsv(280, 80%, 51%)
CMYKcmyk(26.9%, 80%, 0%, 49%)
CIE-LABlab(26.11, 47.38, -43.97)
CIE-LCHlch(26.11, 64.63, 317.14°)
OKLaboklab(38.44% 0.1083 -0.1246)
OKLCHoklch(38.44% 0.165 311)
XYZxyz(9.1172, 4.7836, 21.5578)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1A82 #3D821A
analogous
#2B1A82 #5F1A82 #821A71
triadic
#5F1A82 #825F1A #1A825F
tetradic
#5F1A82 #822B1A #3D821A #1A7182
square
#5F1A82 #822B1A #3D821A #1A7182
split-complementary
#5F1A82 #71821A #1A822B
monochromatic
#14061C #3A104F #5F1A82 #8424B5 #A43ED8

Accessibility & contrast

On white

10.73
#5F1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5F1A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1A82
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1A82#FFFFFF#000000##FFFFFF
##5F1A821.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003F80
Tritanopia (blue-blind)
#5A334E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f1a82;
/* rgb */ color: rgb(95, 26, 130);
/* oklch */ color: oklch(38.4% 0.165 311.0);
Tailwind
colors: {
  custom: {
    50: '#915fa7',
    500: '#5f1a82',
    950: '#000000',
  },
}
SCSS
$custom: #5f1a82;
$custom-light: #915fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1a82",
  "rgb": {
    "r": 95,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 279.808,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38436,
    "c": 0.16512,
    "h": 311
  },
  "luminance": 0.04783
}

Semantic roles & 50–950 ramp

primary
#5F1A82
secondary
#69B642
accent
#EA3E78
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1A82

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

Preview Lab → · Contrast checker → · Palette generator →

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