#5F1A8A#5F1A8A

#5F1A8A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.173 H 308.0°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#5F1A8A
RGBrgb(95, 26, 138)
HSLhsl(277, 68%, 32%)
HSVhsv(277, 81%, 54%)
CMYKcmyk(31.2%, 81.2%, 0%, 45.9%)
CIE-LABlab(26.75, 49.17, -47.93)
CIE-LCHlch(26.75, 68.67, 315.74°)
OKLaboklab(39.09% 0.1065 -0.1362)
OKLCHoklch(39.09% 0.173 308)
XYZxyz(9.6752, 5.0068, 24.4965)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1A8A #458A1A
analogous
#271A8A #5F1A8A #8A1A7D
triadic
#5F1A8A #8A5F1A #1A8A5F
tetradic
#5F1A8A #8A271A #458A1A #1A7D8A
square
#5F1A8A #8A271A #458A1A #1A7D8A
split-complementary
#5F1A8A #7D8A1A #1A8A27
monochromatic
#180723 #3C1057 #5F1A8A #8224BD #A143DC

Accessibility & contrast

On white

10.49
#5F1A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1A8A
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1A8A#FFFFFF#000000##FFFFFF
##5F1A8A1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1a8a;
/* rgb */ color: rgb(95, 26, 138);
/* oklch */ color: oklch(39.1% 0.173 308.0);
Tailwind
colors: {
  custom: {
    50: '#9160ad',
    500: '#5f1a8a',
    950: '#000000',
  },
}
SCSS
$custom: #5f1a8a;
$custom-light: #9160ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1a8a",
  "rgb": {
    "r": 95,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 276.964,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3909,
    "c": 0.1729,
    "h": 308
  },
  "luminance": 0.05007
}

Semantic roles & 50–950 ramp

primary
#5F1A8A
secondary
#72BD43
accent
#EB3D80
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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