#5F1684#5F1684

#5F1684 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.171 H 310.6°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#5F1684
RGBrgb(95, 22, 132)
HSLhsl(280, 71%, 30%)
HSVhsv(280, 83%, 52%)
CMYKcmyk(28%, 83.3%, 0%, 48.2%)
CIE-LABlab(25.78, 49.23, -45.75)
CIE-LCHlch(25.78, 67.21, 317.10°)
OKLaboklab(38.26% 0.1112 -0.1298)
OKLCHoklch(38.26% 0.171 310.6)
XYZxyz(9.1703, 4.6729, 22.2442)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1684 #3B8416
analogous
#281684 #5F1684 #841672
triadic
#5F1684 #845F16 #16845F
tetradic
#5F1684 #842816 #3B8416 #167284
square
#5F1684 #842816 #3B8416 #167284
split-complementary
#5F1684 #728416 #168428
monochromatic
#13051B #390D50 #5F1684 #851FB8 #A637DE

Accessibility & contrast

On white

10.85
#5F1684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5F1684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1684
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1684#FFFFFF#000000##FFFFFF
##5F16841.0010.851.9310.85
#FFFFFF10.851.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003E82
Tritanopia (blue-blind)
#5A334E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f1684;
/* rgb */ color: rgb(95, 22, 132);
/* oklch */ color: oklch(38.3% 0.171 310.6);
Tailwind
colors: {
  custom: {
    50: '#915ea9',
    500: '#5f1684',
    950: '#000000',
  },
}
SCSS
$custom: #5f1684;
$custom-light: #915ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1684",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 279.818,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38257,
    "c": 0.17097,
    "h": 310.6
  },
  "luminance": 0.04673
}

Semantic roles & 50–950 ramp

primary
#5F1684
secondary
#67B83D
accent
#EE3A76
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1684

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

Preview Lab → · Contrast checker → · Palette generator →

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