#5F1C99#5F1C99

#5F1C99 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.186 H 302.8°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#5F1C99
RGBrgb(95, 28, 153)
HSLhsl(272, 69%, 35%)
HSVhsv(272, 82%, 60%)
CMYKcmyk(37.9%, 81.7%, 0%, 40%)
CIE-LABlab(28.28, 51.92, -54.70)
CIE-LCHlch(28.28, 75.42, 313.51°)
OKLaboklab(40.55% 0.1007 -0.1562)
OKLCHoklch(40.55% 0.186 302.8)
XYZxyz(10.8830, 5.5633, 30.6313)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1C99 #56991C
analogous
#201C99 #5F1C99 #991C94
triadic
#5F1C99 #995F1C #1C995F
tetradic
#5F1C99 #99201C #56991C #1C9499
square
#5F1C99 #99201C #56991C #1C9499
split-complementary
#5F1C99 #94991C #1C9920
monochromatic
#1F0932 #3F1365 #5F1C99 #7F25CD #9D50DF

Accessibility & contrast

On white

9.94
#5F1C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5F1C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1C99
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1C99#FFFFFF#000000##FFFFFF
##5F1C991.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#533E5B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f1c99;
/* rgb */ color: rgb(95, 28, 153);
/* oklch */ color: oklch(40.6% 0.186 302.8);
Tailwind
colors: {
  custom: {
    50: '#9261b8',
    500: '#5f1c99',
    950: '#000000',
  },
}
SCSS
$custom: #5f1c99;
$custom-light: #9261b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1c99",
  "rgb": {
    "r": 95,
    "g": 28,
    "b": 153
  },
  "hsl": {
    "h": 272.16,
    "s": 69.061,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40552,
    "c": 0.18579,
    "h": 302.8
  },
  "luminance": 0.05563
}

Semantic roles & 50–950 ramp

primary
#5F1C99
secondary
#84C24F
accent
#EC3C8E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5F1C99

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

Preview Lab → · Contrast checker → · Palette generator →

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