#5F2181#5F2181

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

Color values

HEX#5F2181
RGBrgb(95, 33, 129)
HSLhsl(279, 59%, 32%)
HSVhsv(279, 74%, 51%)
CMYKcmyk(26.4%, 74.4%, 0%, 49.4%)
CIE-LABlab(27.03, 44.29, -41.84)
CIE-LCHlch(27.03, 60.93, 316.63°)
OKLaboklab(39.07% 0.1017 -0.1184)
OKLCHoklch(39.07% 0.156 310.6)
XYZxyz(9.2249, 5.1058, 21.2642)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2181 #438121
analogous
#2F2181 #5F2181 #812173
triadic
#5F2181 #815F21 #21815F
tetradic
#5F2181 #812F21 #438121 #217381
square
#5F2181 #812F21 #438121 #217381
split-complementary
#5F2181 #738121 #21812F
monochromatic
#170820 #3B1550 #5F2181 #832DB2 #A24BD1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F2181#FFFFFF#000000##FFFFFF
##5F21811.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)
#003D84
Deuteranopia (green-blind)
#10417F
Tritanopia (blue-blind)
#5A374F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f2181;
/* rgb */ color: rgb(95, 33, 129);
/* oklch */ color: oklch(39.1% 0.156 310.6);
Tailwind
colors: {
  custom: {
    50: '#9063a6',
    500: '#5f2181',
    950: '#000000',
  },
}
SCSS
$custom: #5f2181;
$custom-light: #9063a6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2181",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 278.75,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39065,
    "c": 0.15606,
    "h": 310.6
  },
  "luminance": 0.05106
}

Semantic roles & 50–950 ramp

primary
#5F2181
secondary
#70B44A
accent
#E2457D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5F2181

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

Preview Lab → · Contrast checker → · Palette generator →

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