#5F1F8A#5F1F8A

#5F1F8A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.168 H 307.5°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#5F1F8A
RGBrgb(95, 31, 138)
HSLhsl(276, 63%, 33%)
HSVhsv(276, 78%, 54%)
CMYKcmyk(31.2%, 77.5%, 0%, 45.9%)
CIE-LABlab(27.43, 47.23, -46.83)
CIE-LCHlch(27.43, 66.51, 315.24°)
OKLaboklab(39.56% 0.102 -0.1331)
OKLCHoklch(39.56% 0.168 307.5)
XYZxyz(9.7958, 5.2480, 24.5367)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1F8A #4A8A1F
analogous
#291F8A #5F1F8A #8A1F7F
triadic
#5F1F8A #8A5F1F #1F8A5F
tetradic
#5F1F8A #8A291F #4A8A1F #1F7F8A
square
#5F1F8A #8A291F #4A8A1F #1F7F8A
split-complementary
#5F1F8A #7F8A1F #1F8A29
monochromatic
#1A0926 #3D1458 #5F1F8A #812ABC #9F4CD7

Accessibility & contrast

On white

10.25
#5F1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5F1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1F8A
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1F8A#FFFFFF#000000##FFFFFF
##5F1F8A1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#583953
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f1f8a;
/* rgb */ color: rgb(95, 31, 138);
/* oklch */ color: oklch(39.6% 0.168 307.5);
Tailwind
colors: {
  custom: {
    50: '#9162ad',
    500: '#5f1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #5f1f8a;
$custom-light: #9162ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1f8a",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 275.888,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39564,
    "c": 0.16766,
    "h": 307.5
  },
  "luminance": 0.05248
}

Semantic roles & 50–950 ramp

primary
#5F1F8A
secondary
#78BA4B
accent
#E64184
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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