#5F1A85#5F1A85

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

Color values

HEX#5F1A85
RGBrgb(95, 26, 133)
HSLhsl(279, 67%, 31%)
HSVhsv(279, 80%, 52%)
CMYKcmyk(28.6%, 80.5%, 0%, 47.8%)
CIE-LABlab(26.35, 48.05, -45.46)
CIE-LCHlch(26.35, 66.15, 316.58°)
OKLaboklab(38.68% 0.1077 -0.129)
OKLCHoklch(38.68% 0.168 309.8)
XYZxyz(9.3215, 4.8653, 22.6338)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1A85 #40851A
analogous
#291A85 #5F1A85 #851A75
triadic
#5F1A85 #855F1A #1A855F
tetradic
#5F1A85 #85291A #40851A #1A7585
square
#5F1A85 #85291A #40851A #1A7585
split-complementary
#5F1A85 #75851A #1A8529
monochromatic
#16061F #3A1052 #5F1A85 #8424B8 #A340DA

Accessibility & contrast

On white

10.64
#5F1A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5F1A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1A85
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1A85#FFFFFF#000000##FFFFFF
##5F1A851.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C88
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#59354F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f1a85;
/* rgb */ color: rgb(95, 26, 133);
/* oklch */ color: oklch(38.7% 0.168 309.8);
Tailwind
colors: {
  custom: {
    50: '#915fa9',
    500: '#5f1a85',
    950: '#000000',
  },
}
SCSS
$custom: #5f1a85;
$custom-light: #915fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1a85",
  "rgb": {
    "r": 95,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 278.692,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38678,
    "c": 0.16804,
    "h": 309.8
  },
  "luminance": 0.04865
}

Semantic roles & 50–950 ramp

primary
#5F1A85
secondary
#6CB842
accent
#EA3E7B
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1A85

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

Preview Lab → · Contrast checker → · Palette generator →

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