#5F1FA7#5F1FA7

#5F1FA7 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.1% C 0.197 H 298.5°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#5F1FA7
RGBrgb(95, 31, 167)
HSLhsl(268, 69%, 39%)
HSVhsv(268, 81%, 65%)
CMYKcmyk(43.1%, 81.4%, 0%, 34.5%)
CIE-LABlab(29.92, 54.18, -60.53)
CIE-LCHlch(29.92, 81.23, 311.83°)
OKLaboklab(42.07% 0.094 -0.1733)
OKLCHoklch(42.07% 0.197 298.5)
XYZxyz(12.1826, 6.2027, 37.1071)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1FA7 #67A71F
analogous
#1F23A7 #5F1FA7 #A31FA7
triadic
#5F1FA7 #A75F1F #1FA75F
tetradic
#5F1FA7 #A71F23 #67A71F #1FA7A3
square
#5F1FA7 #A71F23 #67A71F #1FA7A3
split-complementary
#5F1FA7 #A7A31F #23A71F
monochromatic
#240C40 #421573 #5F1FA7 #7D2BD8 #9C5FE1

Accessibility & contrast

On white

9.37
#5F1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5F1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1FA7
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1FA7#FFFFFF#000000##FFFFFF
##5F1FA71.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#4D4664
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f1fa7;
/* rgb */ color: rgb(95, 31, 167);
/* oklch */ color: oklch(42.1% 0.197 298.5);
Tailwind
colors: {
  custom: {
    50: '#9464c2',
    500: '#5f1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #5f1fa7;
$custom-light: #9464c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1fa7",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 268.235,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42072,
    "c": 0.19717,
    "h": 298.5
  },
  "luminance": 0.06203
}

Semantic roles & 50–950 ramp

primary
#5F1FA7
secondary
#94C65C
accent
#EC3C99
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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