#5F2192#5F2192

#5F2192 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.174 H 304.5°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#5F2192
RGBrgb(95, 33, 146)
HSLhsl(273, 63%, 35%)
HSVhsv(273, 77%, 57%)
CMYKcmyk(34.9%, 77.4%, 0%, 42.7%)
CIE-LABlab(28.37, 48.29, -50.26)
CIE-LCHlch(28.37, 69.69, 313.86°)
OKLaboklab(40.43% 0.0983 -0.1431)
OKLCHoklch(40.43% 0.174 304.5)
XYZxyz(10.4503, 5.5960, 27.7181)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2192 #549221
analogous
#262192 #5F2192 #92218D
triadic
#5F2192 #925F21 #21925F
tetradic
#5F2192 #922621 #549221 #218D92
square
#5F2192 #922621 #549221 #218D92
split-complementary
#5F2192 #8D9221 #219226
monochromatic
#1E0A2E #3F1660 #5F2192 #7F2CC4 #9D55D9

Accessibility & contrast

On white

9.91
#5F2192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5F2192 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2192
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2192#FFFFFF#000000##FFFFFF
##5F21921.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004195
Deuteranopia (green-blind)
#004390
Tritanopia (blue-blind)
#553E58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f2192;
/* rgb */ color: rgb(95, 33, 146);
/* oklch */ color: oklch(40.4% 0.174 304.5);
Tailwind
colors: {
  custom: {
    50: '#9263b3',
    500: '#5f2192',
    950: '#000000',
  },
}
SCSS
$custom: #5f2192;
$custom-light: #9263b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2192",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 146
  },
  "hsl": {
    "h": 272.92,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40428,
    "c": 0.17366,
    "h": 304.5
  },
  "luminance": 0.05596
}

Semantic roles & 50–950 ramp

primary
#5F2192
secondary
#82BC53
accent
#E6428C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2192

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

Preview Lab → · Contrast checker → · Palette generator →

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