#5F1992#5F1992

#5F1992 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.182 H 305.3°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#5F1992
RGBrgb(95, 25, 146)
HSLhsl(275, 71%, 34%)
HSVhsv(275, 83%, 57%)
CMYKcmyk(34.9%, 82.9%, 0%, 42.7%)
CIE-LABlab(27.31, 51.36, -51.99)
CIE-LCHlch(27.31, 73.08, 314.65°)
OKLaboklab(39.68% 0.105 -0.1482)
OKLCHoklch(39.68% 0.182 305.3)
XYZxyz(10.2541, 5.2035, 27.6527)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1992 #4C9219
analogous
#231992 #5F1992 #921988
triadic
#5F1992 #925F19 #19925F
tetradic
#5F1992 #922319 #4C9219 #198892
square
#5F1992 #922319 #4C9219 #198892
split-complementary
#5F1992 #889219 #199223
monochromatic
#1B0729 #3D105E #5F1992 #8122C6 #9F46DF

Accessibility & contrast

On white

10.29
#5F1992 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5F1992 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1992
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1992#FFFFFF#000000##FFFFFF
##5F19921.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F95
Deuteranopia (green-blind)
#004190
Tritanopia (blue-blind)
#553A57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f1992;
/* rgb */ color: rgb(95, 25, 146);
/* oklch */ color: oklch(39.7% 0.182 305.3);
Tailwind
colors: {
  custom: {
    50: '#9260b3',
    500: '#5f1992',
    950: '#000000',
  },
}
SCSS
$custom: #5f1992;
$custom-light: #9260b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1992",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 146
  },
  "hsl": {
    "h": 274.711,
    "s": 70.76,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39685,
    "c": 0.18163,
    "h": 305.3
  },
  "luminance": 0.05203
}

Semantic roles & 50–950 ramp

primary
#5F1992
secondary
#7AC146
accent
#EE3A86
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #5F1992

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

Preview Lab → · Contrast checker → · Palette generator →

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