#5F198F#5F198F

#5F198F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.179 H 306.3°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#5F198F
RGBrgb(95, 25, 143)
HSLhsl(276, 70%, 33%)
HSVhsv(276, 83%, 56%)
CMYKcmyk(33.6%, 82.5%, 0%, 43.9%)
CIE-LABlab(27.05, 50.67, -50.55)
CIE-LCHlch(27.05, 71.57, 315.07°)
OKLaboklab(39.43% 0.1059 -0.144)
OKLCHoklch(39.43% 0.179 306.3)
XYZxyz(10.0238, 5.1114, 26.4398)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F198F #498F19
analogous
#24198F #5F198F #8F1984
triadic
#5F198F #8F5F19 #198F5F
tetradic
#5F198F #8F2419 #498F19 #19848F
square
#5F198F #8F2419 #498F19 #19848F
split-complementary
#5F198F #848F19 #198F24
monochromatic
#1A0727 #3C105B #5F198F #8222C3 #A044DE

Accessibility & contrast

On white

10.38
#5F198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F198F
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F198F#FFFFFF#000000##FFFFFF
##5F198F1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#563955
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f198f;
/* rgb */ color: rgb(95, 25, 143);
/* oklch */ color: oklch(39.4% 0.179 306.3);
Tailwind
colors: {
  custom: {
    50: '#9260b1',
    500: '#5f198f',
    950: '#000000',
  },
}
SCSS
$custom: #5f198f;
$custom-light: #9260b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f198f",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 275.593,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39427,
    "c": 0.17872,
    "h": 306.3
  },
  "luminance": 0.05111
}

Semantic roles & 50–950 ramp

primary
#5F198F
secondary
#76BF44
accent
#ED3B83
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5F198F

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

Preview Lab → · Contrast checker → · Palette generator →

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