#5F1F8D#5F1F8D

#5F1F8D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.171 H 306.4°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#5F1F8D
RGBrgb(95, 31, 141)
HSLhsl(275, 64%, 34%)
HSVhsv(275, 78%, 55%)
CMYKcmyk(32.6%, 78%, 0%, 44.7%)
CIE-LABlab(27.67, 47.93, -48.30)
CIE-LCHlch(27.67, 68.04, 314.78°)
OKLaboklab(39.81% 0.1013 -0.1374)
OKLCHoklch(39.81% 0.171 306.4)
XYZxyz(10.0160, 5.3361, 25.6964)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1F8D #4D8D1F
analogous
#281F8D #5F1F8D #8D1F84
triadic
#5F1F8D #8D5F1F #1F8D5F
tetradic
#5F1F8D #8D281F #4D8D1F #1F848D
square
#5F1F8D #8D281F #4D8D1F #1F848D
split-complementary
#5F1F8D #848D1F #1F8D28
monochromatic
#1B0929 #3D145B #5F1F8D #812ABF #9E4ED8

Accessibility & contrast

On white

10.16
#5F1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5F1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1F8D
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1F8D#FFFFFF#000000##FFFFFF
##5F1F8D1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#573B55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f1f8d;
/* rgb */ color: rgb(95, 31, 141);
/* oklch */ color: oklch(39.8% 0.171 306.4);
Tailwind
colors: {
  custom: {
    50: '#9162af',
    500: '#5f1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #5f1f8d;
$custom-light: #9162af;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1f8d",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 274.909,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3981,
    "c": 0.17071,
    "h": 306.4
  },
  "luminance": 0.05336
}

Semantic roles & 50–950 ramp

primary
#5F1F8D
secondary
#7BBB4D
accent
#E74186
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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