#5F198D#5F198D

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

Color values

HEX#5F198D
RGBrgb(95, 25, 141)
HSLhsl(276, 70%, 33%)
HSVhsv(276, 82%, 55%)
CMYKcmyk(32.6%, 82.3%, 0%, 44.7%)
CIE-LABlab(26.88, 50.21, -49.59)
CIE-LCHlch(26.88, 70.57, 315.36°)
OKLaboklab(39.26% 0.1065 -0.1411)
OKLCHoklch(39.26% 0.177 307)
XYZxyz(9.8736, 5.0514, 25.6490)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F198D #478D19
analogous
#25198D #5F198D #8D1981
triadic
#5F198D #8D5F19 #198D5F
tetradic
#5F198D #8D2519 #478D19 #19818D
square
#5F198D #8D2519 #478D19 #19818D
split-complementary
#5F198D #818D19 #198D25
monochromatic
#190725 #3C1059 #5F198D #8222C1 #A043DE

Accessibility & contrast

On white

10.45
#5F198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5F198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F198D
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F198D#FFFFFF#000000##FFFFFF
##5F198D1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f198d;
/* rgb */ color: rgb(95, 25, 141);
/* oklch */ color: oklch(39.3% 0.177 307.0);
Tailwind
colors: {
  custom: {
    50: '#9260af',
    500: '#5f198d',
    950: '#000000',
  },
}
SCSS
$custom: #5f198d;
$custom-light: #9260af;
$custom-dark: #000000;
JSON
{
  "hex": "#5f198d",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 276.207,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39256,
    "c": 0.17678,
    "h": 307
  },
  "luminance": 0.05051
}

Semantic roles & 50–950 ramp

primary
#5F198D
secondary
#74BF43
accent
#ED3B82
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F198D

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

Preview Lab → · Contrast checker → · Palette generator →

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