#5F1F94#5F1F94

#5F1F94 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.178 H 304.1°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#5F1F94
RGBrgb(95, 31, 148)
HSLhsl(273, 65%, 35%)
HSVhsv(273, 79%, 58%)
CMYKcmyk(35.8%, 79.1%, 0%, 42%)
CIE-LABlab(28.25, 49.59, -51.68)
CIE-LCHlch(28.25, 71.62, 313.81°)
OKLaboklab(40.4% 0.0996 -0.1473)
OKLCHoklch(40.4% 0.178 304.1)
XYZxyz(10.5534, 5.5510, 28.5267)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1F94 #54941F
analogous
#251F94 #5F1F94 #941F8E
triadic
#5F1F94 #945F1F #1F945F
tetradic
#5F1F94 #94251F #54941F #1F8E94
square
#5F1F94 #94251F #54941F #1F8E94
split-complementary
#5F1F94 #8E941F #1F9425
monochromatic
#1E0A2F #3F1461 #5F1F94 #7F2AC7 #9D53DB

Accessibility & contrast

On white

9.95
#5F1F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5F1F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1F94
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1F94#FFFFFF#000000##FFFFFF
##5F1F941.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004197
Deuteranopia (green-blind)
#004392
Tritanopia (blue-blind)
#543E59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f1f94;
/* rgb */ color: rgb(95, 31, 148);
/* oklch */ color: oklch(40.4% 0.178 304.1);
Tailwind
colors: {
  custom: {
    50: '#9262b4',
    500: '#5f1f94',
    950: '#000000',
  },
}
SCSS
$custom: #5f1f94;
$custom-light: #9262b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1f94",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 272.821,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40396,
    "c": 0.17784,
    "h": 304.1
  },
  "luminance": 0.05551
}

Semantic roles & 50–950 ramp

primary
#5F1F94
secondary
#82BE51
accent
#E83F8C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F1F94

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

Preview Lab → · Contrast checker → · Palette generator →

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