#5F1A93#5F1A93

#5F1A93 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.182 H 304.9°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#5F1A93
RGBrgb(95, 26, 147)
HSLhsl(274, 70%, 34%)
HSVhsv(274, 82%, 58%)
CMYKcmyk(35.4%, 82.3%, 0%, 42.4%)
CIE-LABlab(27.51, 51.24, -52.27)
CIE-LCHlch(27.51, 73.19, 314.43°)
OKLaboklab(39.86% 0.104 -0.149)
OKLCHoklch(39.86% 0.182 304.9)
XYZxyz(10.3540, 5.2783, 28.0715)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1A93 #4E931A
analogous
#231A93 #5F1A93 #931A8B
triadic
#5F1A93 #935F1A #1A935F
tetradic
#5F1A93 #93231A #4E931A #1A8B93
square
#5F1A93 #93231A #4E931A #1A8B93
split-complementary
#5F1A93 #8B931A #1A9323
monochromatic
#1C082B #3D115F #5F1A93 #8123C7 #9E49DF

Accessibility & contrast

On white

10.22
#5F1A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5F1A93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1A93
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1A93#FFFFFF#000000##FFFFFF
##5F1A931.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.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: #5f1a93;
/* rgb */ color: rgb(95, 26, 147);
/* oklch */ color: oklch(39.9% 0.182 304.9);
Tailwind
colors: {
  custom: {
    50: '#9260b4',
    500: '#5f1a93',
    950: '#000000',
  },
}
SCSS
$custom: #5f1a93;
$custom-light: #9260b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1a93",
  "rgb": {
    "r": 95,
    "g": 26,
    "b": 147
  },
  "hsl": {
    "h": 274.215,
    "s": 69.942,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39856,
    "c": 0.1817,
    "h": 304.9
  },
  "luminance": 0.05278
}

Semantic roles & 50–950 ramp

primary
#5F1A93
secondary
#7CC048
accent
#ED3B87
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5F1A93

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

Preview Lab → · Contrast checker → · Palette generator →

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