#5F1E82#5F1E82

#5F1E82 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.161 H 310.6°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#5F1E82
RGBrgb(95, 30, 130)
HSLhsl(279, 63%, 31%)
HSVhsv(279, 77%, 51%)
CMYKcmyk(26.9%, 76.9%, 0%, 49%)
CIE-LABlab(26.66, 45.80, -43.07)
CIE-LCHlch(26.66, 62.87, 316.76°)
OKLaboklab(38.82% 0.1046 -0.122)
OKLCHoklch(38.82% 0.161 310.6)
XYZxyz(9.2121, 4.9734, 21.5894)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1E82 #41821E
analogous
#2D1E82 #5F1E82 #821E73
triadic
#5F1E82 #825F1E #1E825F
tetradic
#5F1E82 #822D1E #41821E #1E7382
square
#5F1E82 #822D1E #41821E #1E7382
split-complementary
#5F1E82 #73821E #1E822D
monochromatic
#16071F #3B1350 #5F1E82 #8329B4 #A346D4

Accessibility & contrast

On white

10.53
#5F1E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5F1E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1E82
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1E82#FFFFFF#000000##FFFFFF
##5F1E821.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1e82;
/* rgb */ color: rgb(95, 30, 130);
/* oklch */ color: oklch(38.8% 0.161 310.6);
Tailwind
colors: {
  custom: {
    50: '#9061a7',
    500: '#5f1e82',
    950: '#000000',
  },
}
SCSS
$custom: #5f1e82;
$custom-light: #9061a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1e82",
  "rgb": {
    "r": 95,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 279,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38823,
    "c": 0.1607,
    "h": 310.6
  },
  "luminance": 0.04973
}

Semantic roles & 50–950 ramp

primary
#5F1E82
secondary
#6DB547
accent
#E6427B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5F1E82

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

Preview Lab → · Contrast checker → · Palette generator →

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