#5F1993#5F1993

#5F1993 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.8% C 0.183 H 305.0°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#5F1993
RGBrgb(95, 25, 147)
HSLhsl(274, 71%, 34%)
HSVhsv(274, 83%, 58%)
CMYKcmyk(35.4%, 83%, 0%, 42.4%)
CIE-LABlab(27.39, 51.59, -52.46)
CIE-LCHlch(27.39, 73.58, 314.52°)
OKLaboklab(39.77% 0.1047 -0.1496)
OKLCHoklch(39.77% 0.183 305)
XYZxyz(10.3322, 5.2348, 28.0642)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1993 #4D9319
analogous
#221993 #5F1993 #93198A
triadic
#5F1993 #935F19 #19935F
tetradic
#5F1993 #932219 #4D9319 #198A93
square
#5F1993 #932219 #4D9319 #198A93
split-complementary
#5F1993 #8A9319 #199322
monochromatic
#1B072A #3D105F #5F1993 #8122C7 #9E47E0

Accessibility & contrast

On white

10.26
#5F1993 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5F1993 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1993
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1993#FFFFFF#000000##FFFFFF
##5F19931.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F96
Deuteranopia (green-blind)
#004191
Tritanopia (blue-blind)
#553B57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f1993;
/* rgb */ color: rgb(95, 25, 147);
/* oklch */ color: oklch(39.8% 0.183 305.0);
Tailwind
colors: {
  custom: {
    50: '#9260b4',
    500: '#5f1993',
    950: '#000000',
  },
}
SCSS
$custom: #5f1993;
$custom-light: #9260b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1993",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 147
  },
  "hsl": {
    "h": 274.426,
    "s": 70.93,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39772,
    "c": 0.1826,
    "h": 305
  },
  "luminance": 0.05235
}

Semantic roles & 50–950 ramp

primary
#5F1993
secondary
#7BC147
accent
#EE3A87
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #5F1993

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

Preview Lab → · Contrast checker → · Palette generator →

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