#5F1B82#5F1B82

#5F1B82 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.164 H 310.9°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#5F1B82
RGBrgb(95, 27, 130)
HSLhsl(280, 66%, 31%)
HSVhsv(280, 79%, 51%)
CMYKcmyk(26.9%, 79.2%, 0%, 49%)
CIE-LABlab(26.24, 47.00, -43.75)
CIE-LCHlch(26.24, 64.21, 317.05°)
OKLaboklab(38.53% 0.1074 -0.124)
OKLCHoklch(38.53% 0.164 310.9)
XYZxyz(9.1397, 4.8287, 21.5653)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1B82 #3E821B
analogous
#2C1B82 #5F1B82 #821B71
triadic
#5F1B82 #825F1B #1B825F
tetradic
#5F1B82 #822C1B #3E821B #1B7182
square
#5F1B82 #822C1B #3E821B #1B7182
split-complementary
#5F1B82 #71821B #1B822C
monochromatic
#15061D #3A104F #5F1B82 #8426B5 #A440D7

Accessibility & contrast

On white

10.68
#5F1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1B82
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1B82#FFFFFF#000000##FFFFFF
##5F1B821.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1b82;
/* rgb */ color: rgb(95, 27, 130);
/* oklch */ color: oklch(38.5% 0.164 310.9);
Tailwind
colors: {
  custom: {
    50: '#9160a7',
    500: '#5f1b82',
    950: '#000000',
  },
}
SCSS
$custom: #5f1b82;
$custom-light: #9160a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1b82",
  "rgb": {
    "r": 95,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 279.612,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38529,
    "c": 0.16406,
    "h": 310.9
  },
  "luminance": 0.04828
}

Semantic roles & 50–950 ramp

primary
#5F1B82
secondary
#6AB643
accent
#E93F79
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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