#5F1F89#5F1F89

#5F1F89 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.167 H 307.8°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#5F1F89
RGBrgb(95, 31, 137)
HSLhsl(276, 63%, 33%)
HSVhsv(276, 77%, 54%)
CMYKcmyk(30.7%, 77.4%, 0%, 46.3%)
CIE-LABlab(27.35, 46.99, -46.33)
CIE-LCHlch(27.35, 65.99, 315.40°)
OKLaboklab(39.48% 0.1022 -0.1316)
OKLCHoklch(39.48% 0.167 307.8)
XYZxyz(9.7237, 5.2192, 24.1572)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1F89 #49891F
analogous
#2A1F89 #5F1F89 #891F7E
triadic
#5F1F89 #895F1F #1F895F
tetradic
#5F1F89 #892A1F #49891F #1F7E89
square
#5F1F89 #892A1F #49891F #1F7E89
split-complementary
#5F1F89 #7E891F #1F892A
monochromatic
#1A0825 #3C1457 #5F1F89 #822ABB #A04CD6

Accessibility & contrast

On white

10.27
#5F1F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5F1F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1F89
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1F89#FFFFFF#000000##FFFFFF
##5F1F891.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8C
Deuteranopia (green-blind)
#004187
Tritanopia (blue-blind)
#583953
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f1f89;
/* rgb */ color: rgb(95, 31, 137);
/* oklch */ color: oklch(39.5% 0.167 307.8);
Tailwind
colors: {
  custom: {
    50: '#9162ac',
    500: '#5f1f89',
    950: '#000000',
  },
}
SCSS
$custom: #5f1f89;
$custom-light: #9162ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1f89",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 276.226,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39483,
    "c": 0.16664,
    "h": 307.8
  },
  "luminance": 0.05219
}

Semantic roles & 50–950 ramp

primary
#5F1F89
secondary
#76B94B
accent
#E64283
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F1F89

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

Preview Lab → · Contrast checker → · Palette generator →

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