#5F198C#5F198C

#5F198C is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.176 H 307.4°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#5F198C
RGBrgb(95, 25, 140)
HSLhsl(277, 70%, 32%)
HSVhsv(277, 82%, 55%)
CMYKcmyk(32.1%, 82.1%, 0%, 45.1%)
CIE-LABlab(26.80, 49.99, -49.10)
CIE-LCHlch(26.80, 70.07, 315.51°)
OKLaboklab(39.17% 0.1067 -0.1397)
OKLCHoklch(39.17% 0.176 307.4)
XYZxyz(9.7996, 5.0217, 25.2589)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F198C #468C19
analogous
#26198C #5F198C #8C197F
triadic
#5F198C #8C5F19 #198C5F
tetradic
#5F198C #8C2619 #468C19 #197F8C
square
#5F198C #8C2619 #468C19 #197F8C
split-complementary
#5F198C #7F8C19 #198C26
monochromatic
#190624 #3C1058 #5F198C #8222C0 #A142DD

Accessibility & contrast

On white

10.48
#5F198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5F198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F198C
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F198C#FFFFFF#000000##FFFFFF
##5F198C1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#573753
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f198c;
/* rgb */ color: rgb(95, 25, 140);
/* oklch */ color: oklch(39.2% 0.176 307.4);
Tailwind
colors: {
  custom: {
    50: '#915fae',
    500: '#5f198c',
    950: '#000000',
  },
}
SCSS
$custom: #5f198c;
$custom-light: #915fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f198c",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 276.522,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39172,
    "c": 0.17581,
    "h": 307.4
  },
  "luminance": 0.05022
}

Semantic roles & 50–950 ramp

primary
#5F198C
secondary
#73BE43
accent
#ED3B81
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F198C

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

Preview Lab → · Contrast checker → · Palette generator →

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