#5F1FA9#5F1FA9

#5F1FA9 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.3% C 0.199 H 298.0°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#5F1FA9
RGBrgb(95, 31, 169)
HSLhsl(268, 69%, 39%)
HSVhsv(268, 82%, 66%)
CMYKcmyk(43.8%, 81.7%, 0%, 33.7%)
CIE-LABlab(30.10, 54.66, -61.44)
CIE-LCHlch(30.10, 82.23, 311.66°)
OKLaboklab(42.26% 0.0934 -0.1759)
OKLCHoklch(42.26% 0.199 298)
XYZxyz(12.3689, 6.2772, 38.0884)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1FA9 #69A91F
analogous
#1F24A9 #5F1FA9 #A41FA9
triadic
#5F1FA9 #A95F1F #1FA95F
tetradic
#5F1FA9 #A91F24 #69A91F #1FA9A4
square
#5F1FA9 #A91F24 #69A91F #1FA9A4
split-complementary
#5F1FA9 #A9A41F #24A91F
monochromatic
#250C42 #421675 #5F1FA9 #7C2DD8 #9D60E2

Accessibility & contrast

On white

9.31
#5F1FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5F1FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1FA9
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1FA9#FFFFFF#000000##FFFFFF
##5F1FA91.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#4C4765
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f1fa9;
/* rgb */ color: rgb(95, 31, 169);
/* oklch */ color: oklch(42.3% 0.199 298.0);
Tailwind
colors: {
  custom: {
    50: '#9464c4',
    500: '#5f1fa9',
    950: '#000000',
  },
}
SCSS
$custom: #5f1fa9;
$custom-light: #9464c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1fa9",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 267.826,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42255,
    "c": 0.19919,
    "h": 298
  },
  "luminance": 0.06277
}

Semantic roles & 50–950 ramp

primary
#5F1FA9
secondary
#96C75D
accent
#EC3C9A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F1FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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