#5F1D93#5F1D93

#5F1D93 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.179 H 304.6°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#5F1D93
RGBrgb(95, 29, 147)
HSLhsl(274, 67%, 35%)
HSVhsv(274, 80%, 58%)
CMYKcmyk(35.4%, 80.3%, 0%, 42.4%)
CIE-LABlab(27.89, 50.13, -51.65)
CIE-LCHlch(27.89, 71.97, 314.15°)
OKLaboklab(40.12% 0.1016 -0.1472)
OKLCHoklch(40.12% 0.179 304.6)
XYZxyz(10.4239, 5.4183, 28.0948)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1D93 #51931D
analogous
#241D93 #5F1D93 #931D8C
triadic
#5F1D93 #935F1D #1D935F
tetradic
#5F1D93 #93241D #51931D #1D8C93
square
#5F1D93 #93241D #51931D #1D8C93
split-complementary
#5F1D93 #8C931D #1D9324
monochromatic
#1D092D #3E1360 #5F1D93 #8027C6 #9E4EDC

Accessibility & contrast

On white

10.08
#5F1D93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5F1D93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1D93
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1D93#FFFFFF#000000##FFFFFF
##5F1D931.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004096
Deuteranopia (green-blind)
#004291
Tritanopia (blue-blind)
#553C58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f1d93;
/* rgb */ color: rgb(95, 29, 147);
/* oklch */ color: oklch(40.1% 0.179 304.6);
Tailwind
colors: {
  custom: {
    50: '#9262b4',
    500: '#5f1d93',
    950: '#000000',
  },
}
SCSS
$custom: #5f1d93;
$custom-light: #9262b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1d93",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 147
  },
  "hsl": {
    "h": 273.559,
    "s": 67.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40121,
    "c": 0.17885,
    "h": 304.6
  },
  "luminance": 0.05418
}

Semantic roles & 50–950 ramp

primary
#5F1D93
secondary
#7FBF4D
accent
#EA3E8A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5F1D93

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

Preview Lab → · Contrast checker → · Palette generator →

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