#5F1F92#5F1F92

#5F1F92 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.176 H 304.7°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#5F1F92
RGBrgb(95, 31, 146)
HSLhsl(273, 65%, 35%)
HSVhsv(273, 79%, 57%)
CMYKcmyk(34.9%, 78.8%, 0%, 42.7%)
CIE-LABlab(28.08, 49.11, -50.72)
CIE-LCHlch(28.08, 70.60, 314.07°)
OKLaboklab(40.23% 0.1001 -0.1445)
OKLCHoklch(40.23% 0.176 304.7)
XYZxyz(10.3964, 5.4882, 27.7002)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1F92 #52921F
analogous
#251F92 #5F1F92 #921F8C
triadic
#5F1F92 #925F1F #1F925F
tetradic
#5F1F92 #92251F #52921F #1F8C92
square
#5F1F92 #92251F #52921F #1F8C92
split-complementary
#5F1F92 #8C921F #1F9225
monochromatic
#1D0A2D #3E1460 #5F1F92 #802AC4 #9D51DA

Accessibility & contrast

On white

10.01
#5F1F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5F1F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1F92
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1F92#FFFFFF#000000##FFFFFF
##5F1F921.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004195
Deuteranopia (green-blind)
#004290
Tritanopia (blue-blind)
#553D58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f1f92;
/* rgb */ color: rgb(95, 31, 146);
/* oklch */ color: oklch(40.2% 0.176 304.7);
Tailwind
colors: {
  custom: {
    50: '#9262b3',
    500: '#5f1f92',
    950: '#000000',
  },
}
SCSS
$custom: #5f1f92;
$custom-light: #9262b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1f92",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 273.391,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40227,
    "c": 0.1758,
    "h": 304.7
  },
  "luminance": 0.05488
}

Semantic roles & 50–950 ramp

primary
#5F1F92
secondary
#80BD50
accent
#E8408A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F1F92

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

Preview Lab → · Contrast checker → · Palette generator →

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