#5F1A88#5F1A88

#5F1A88 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.171 H 308.7°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#5F1A88
RGBrgb(95, 26, 136)
HSLhsl(278, 68%, 32%)
HSVhsv(278, 81%, 53%)
CMYKcmyk(30.1%, 80.9%, 0%, 46.7%)
CIE-LABlab(26.59, 48.72, -46.95)
CIE-LCHlch(26.59, 67.66, 316.06°)
OKLaboklab(38.92% 0.107 -0.1334)
OKLCHoklch(38.92% 0.171 308.7)
XYZxyz(9.5317, 4.9494, 23.7410)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1A88 #43881A
analogous
#281A88 #5F1A88 #881A7A
triadic
#5F1A88 #885F1A #1A885F
tetradic
#5F1A88 #88281A #43881A #1A7A88
square
#5F1A88 #88281A #43881A #1A7A88
split-complementary
#5F1A88 #7A881A #1A8828
monochromatic
#170621 #3B1055 #5F1A88 #8324BB #A242DB

Accessibility & contrast

On white

10.55
#5F1A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1A88
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1A88#FFFFFF#000000##FFFFFF
##5F1A881.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#593651
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f1a88;
/* rgb */ color: rgb(95, 26, 136);
/* oklch */ color: oklch(38.9% 0.171 308.7);
Tailwind
colors: {
  custom: {
    50: '#9160ab',
    500: '#5f1a88',
    950: '#000000',
  },
}
SCSS
$custom: #5f1a88;
$custom-light: #9160ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1a88",
  "rgb": {
    "r": 95,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 277.636,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38924,
    "c": 0.17096,
    "h": 308.7
  },
  "luminance": 0.04949
}

Semantic roles & 50–950 ramp

primary
#5F1A88
secondary
#70BB43
accent
#EB3D7E
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1A88

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

Preview Lab → · Contrast checker → · Palette generator →

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