#5F198A#5F198A

#5F198A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.174 H 308.1°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#5F198A
RGBrgb(95, 25, 138)
HSLhsl(277, 69%, 32%)
HSVhsv(277, 82%, 54%)
CMYKcmyk(31.2%, 81.9%, 0%, 45.9%)
CIE-LABlab(26.63, 49.53, -48.13)
CIE-LCHlch(26.63, 69.06, 315.82°)
OKLaboklab(39% 0.1073 -0.1368)
OKLCHoklch(39% 0.174 308.1)
XYZxyz(9.6534, 4.9633, 24.4893)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F198A #448A19
analogous
#27198A #5F198A #8A197D
triadic
#5F198A #8A5F19 #198A5F
tetradic
#5F198A #8A2719 #448A19 #197D8A
square
#5F198A #8A2719 #448A19 #197D8A
split-complementary
#5F198A #7D8A19 #198A27
monochromatic
#180622 #3B1056 #5F198A #8322BE #A141DD

Accessibility & contrast

On white

10.54
#5F198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5F198A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F198A
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F198A#FFFFFF#000000##FFFFFF
##5F198A1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#583752
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f198a;
/* rgb */ color: rgb(95, 25, 138);
/* oklch */ color: oklch(39.0% 0.174 308.1);
Tailwind
colors: {
  custom: {
    50: '#915fad',
    500: '#5f198a',
    950: '#000000',
  },
}
SCSS
$custom: #5f198a;
$custom-light: #915fad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f198a",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 277.168,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39003,
    "c": 0.17388,
    "h": 308.1
  },
  "luminance": 0.04963
}

Semantic roles & 50–950 ramp

primary
#5F198A
secondary
#71BD42
accent
#EC3C7F
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F198A

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

Preview Lab → · Contrast checker → · Palette generator →

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