#5F1F85#5F1F85

#5F1F85 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.163 H 309.3°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#5F1F85
RGBrgb(95, 31, 133)
HSLhsl(278, 62%, 32%)
HSVhsv(278, 77%, 52%)
CMYKcmyk(28.6%, 76.7%, 0%, 47.8%)
CIE-LABlab(27.04, 46.07, -44.35)
CIE-LCHlch(27.04, 63.94, 316.09°)
OKLaboklab(39.16% 0.103 -0.1258)
OKLCHoklch(39.16% 0.163 309.3)
XYZxyz(9.4421, 5.1065, 22.6740)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1F85 #45851F
analogous
#2C1F85 #5F1F85 #851F78
triadic
#5F1F85 #855F1F #1F855F
tetradic
#5F1F85 #852C1F #45851F #1F7885
square
#5F1F85 #852C1F #45851F #1F7885
split-complementary
#5F1F85 #78851F #1F852C
monochromatic
#180822 #3C1353 #5F1F85 #822BB7 #A14AD5

Accessibility & contrast

On white

10.39
#5F1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5F1F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1F85
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1F85#FFFFFF#000000##FFFFFF
##5F1F851.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#014183
Tritanopia (blue-blind)
#593751
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f1f85;
/* rgb */ color: rgb(95, 31, 133);
/* oklch */ color: oklch(39.2% 0.163 309.3);
Tailwind
colors: {
  custom: {
    50: '#9162a9',
    500: '#5f1f85',
    950: '#000000',
  },
}
SCSS
$custom: #5f1f85;
$custom-light: #9162a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1f85",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 277.647,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39163,
    "c": 0.16257,
    "h": 309.3
  },
  "luminance": 0.05106
}

Semantic roles & 50–950 ramp

primary
#5F1F85
secondary
#72B749
accent
#E5437F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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