#5F1A89#5F1A89

#5F1A89 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.172 H 308.4°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#5F1A89
RGBrgb(95, 26, 137)
HSLhsl(277, 68%, 32%)
HSVhsv(277, 81%, 54%)
CMYKcmyk(30.7%, 81%, 0%, 46.3%)
CIE-LABlab(26.67, 48.95, -47.44)
CIE-LCHlch(26.67, 68.16, 315.90°)
OKLaboklab(39.01% 0.1067 -0.1348)
OKLCHoklch(39.01% 0.172 308.4)
XYZxyz(9.6031, 4.9780, 24.1170)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1A89 #44891A
analogous
#271A89 #5F1A89 #891A7C
triadic
#5F1A89 #895F1A #1A895F
tetradic
#5F1A89 #89271A #44891A #1A7C89
square
#5F1A89 #89271A #44891A #1A7C89
split-complementary
#5F1A89 #7C891A #1A8927
monochromatic
#180622 #3B1056 #5F1A89 #8324BC #A142DB

Accessibility & contrast

On white

10.52
#5F1A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5F1A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1A89
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1A89#FFFFFF#000000##FFFFFF
##5F1A891.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8C
Deuteranopia (green-blind)
#004087
Tritanopia (blue-blind)
#583752
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f1a89;
/* rgb */ color: rgb(95, 26, 137);
/* oklch */ color: oklch(39.0% 0.172 308.4);
Tailwind
colors: {
  custom: {
    50: '#9160ac',
    500: '#5f1a89',
    950: '#000000',
  },
}
SCSS
$custom: #5f1a89;
$custom-light: #9160ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1a89",
  "rgb": {
    "r": 95,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 277.297,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39007,
    "c": 0.17193,
    "h": 308.4
  },
  "luminance": 0.04978
}

Semantic roles & 50–950 ramp

primary
#5F1A89
secondary
#71BC43
accent
#EB3D7F
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1A89

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

Preview Lab → · Contrast checker → · Palette generator →

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