#5F1C82#5F1C82

#5F1C82 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.163 H 310.8°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#5F1C82
RGBrgb(95, 28, 130)
HSLhsl(279, 65%, 31%)
HSVhsv(279, 78%, 51%)
CMYKcmyk(26.9%, 78.5%, 0%, 49%)
CIE-LABlab(26.38, 46.61, -43.53)
CIE-LCHlch(26.38, 63.78, 316.95°)
OKLaboklab(38.62% 0.1065 -0.1233)
OKLCHoklch(38.62% 0.163 310.8)
XYZxyz(9.1631, 4.8753, 21.5731)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1C82 #3F821C
analogous
#2C1C82 #5F1C82 #821C72
triadic
#5F1C82 #825F1C #1C825F
tetradic
#5F1C82 #822C1C #3F821C #1C7282
square
#5F1C82 #822C1C #3F821C #1C7282
split-complementary
#5F1C82 #72821C #1C822C
monochromatic
#15061D #3A1150 #5F1C82 #8427B4 #A342D6

Accessibility & contrast

On white

10.63
#5F1C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1C82
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1C82#FFFFFF#000000##FFFFFF
##5F1C821.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#043F80
Tritanopia (blue-blind)
#5A344E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f1c82;
/* rgb */ color: rgb(95, 28, 130);
/* oklch */ color: oklch(38.6% 0.163 310.8);
Tailwind
colors: {
  custom: {
    50: '#9060a7',
    500: '#5f1c82',
    950: '#000000',
  },
}
SCSS
$custom: #5f1c82;
$custom-light: #9060a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1c82",
  "rgb": {
    "r": 95,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 279.412,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38624,
    "c": 0.16296,
    "h": 310.8
  },
  "luminance": 0.04875
}

Semantic roles & 50–950 ramp

primary
#5F1C82
secondary
#6BB544
accent
#E8407A
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1C82

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

Preview Lab → · Contrast checker → · Palette generator →

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