#5F198E#5F198E

#5F198E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.178 H 306.7°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#5F198E
RGBrgb(95, 25, 142)
HSLhsl(276, 70%, 33%)
HSVhsv(276, 82%, 56%)
CMYKcmyk(33.1%, 82.4%, 0%, 44.3%)
CIE-LABlab(26.97, 50.44, -50.07)
CIE-LCHlch(26.97, 71.07, 315.21°)
OKLaboklab(39.34% 0.1062 -0.1425)
OKLCHoklch(39.34% 0.178 306.7)
XYZxyz(9.9484, 5.0813, 26.0426)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F198E #488E19
analogous
#24198E #5F198E #8E1983
triadic
#5F198E #8E5F19 #198E5F
tetradic
#5F198E #8E2419 #488E19 #19838E
square
#5F198E #8E2419 #488E19 #19838E
split-complementary
#5F198E #838E19 #198E24
monochromatic
#190726 #3C105A #5F198E #8222C2 #A043DE

Accessibility & contrast

On white

10.42
#5F198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F198E
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F198E#FFFFFF#000000##FFFFFF
##5F198E1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#573854
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f198e;
/* rgb */ color: rgb(95, 25, 142);
/* oklch */ color: oklch(39.3% 0.178 306.7);
Tailwind
colors: {
  custom: {
    50: '#9260b0',
    500: '#5f198e',
    950: '#000000',
  },
}
SCSS
$custom: #5f198e;
$custom-light: #9260b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f198e",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 275.897,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39341,
    "c": 0.17775,
    "h": 306.7
  },
  "luminance": 0.05081
}

Semantic roles & 50–950 ramp

primary
#5F198E
secondary
#75BF44
accent
#ED3B82
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5F198E

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

Preview Lab → · Contrast checker → · Palette generator →

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