#5F1C83#5F1C83

#5F1C83 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.164 H 310.4°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#5F1C83
RGBrgb(95, 28, 131)
HSLhsl(279, 65%, 31%)
HSVhsv(279, 79%, 51%)
CMYKcmyk(27.5%, 78.6%, 0%, 48.6%)
CIE-LABlab(26.45, 46.83, -44.03)
CIE-LCHlch(26.45, 64.28, 316.76°)
OKLaboklab(38.7% 0.1063 -0.1248)
OKLCHoklch(38.7% 0.164 310.4)
XYZxyz(9.2305, 4.9023, 21.9283)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1C83 #40831C
analogous
#2B1C83 #5F1C83 #831C73
triadic
#5F1C83 #835F1C #1C835F
tetradic
#5F1C83 #832B1C #40831C #1C7383
square
#5F1C83 #832B1C #40831C #1C7383
split-complementary
#5F1C83 #73831C #1C832B
monochromatic
#16061E #3A1151 #5F1C83 #8427B5 #A343D7

Accessibility & contrast

On white

10.60
#5F1C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5F1C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1C83
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1C83#FFFFFF#000000##FFFFFF
##5F1C831.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C86
Deuteranopia (green-blind)
#014081
Tritanopia (blue-blind)
#5A354F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f1c83;
/* rgb */ color: rgb(95, 28, 131);
/* oklch */ color: oklch(38.7% 0.164 310.4);
Tailwind
colors: {
  custom: {
    50: '#9160a8',
    500: '#5f1c83',
    950: '#000000',
  },
}
SCSS
$custom: #5f1c83;
$custom-light: #9160a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1c83",
  "rgb": {
    "r": 95,
    "g": 28,
    "b": 131
  },
  "hsl": {
    "h": 279.029,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38704,
    "c": 0.16395,
    "h": 310.4
  },
  "luminance": 0.04902
}

Semantic roles & 50–950 ramp

primary
#5F1C83
secondary
#6CB645
accent
#E8407B
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1C83

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

Preview Lab → · Contrast checker → · Palette generator →

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