#5F1489#5F1489

#5F1489 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.177 H 308.9°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#5F1489
RGBrgb(95, 20, 137)
HSLhsl(278, 75%, 31%)
HSVhsv(278, 85%, 54%)
CMYKcmyk(30.7%, 85.4%, 0%, 46.3%)
CIE-LABlab(25.98, 50.96, -48.56)
CIE-LCHlch(25.98, 70.40, 316.38°)
OKLaboklab(38.52% 0.1113 -0.1381)
OKLCHoklch(38.52% 0.177 308.9)
XYZxyz(9.4839, 4.7395, 24.0773)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1489 #3E8914
analogous
#251489 #5F1489 #891478
triadic
#5F1489 #895F14 #14895F
tetradic
#5F1489 #892514 #3E8914 #147889
square
#5F1489 #892514 #3E8914 #147889
split-complementary
#5F1489 #788914 #148925
monochromatic
#15041E #3A0C54 #5F1489 #841CBE #A436E2

Accessibility & contrast

On white

10.78
#5F1489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5F1489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1489
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1489#FFFFFF#000000##FFFFFF
##5F14891.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#583451
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f1489;
/* rgb */ color: rgb(95, 20, 137);
/* oklch */ color: oklch(38.5% 0.177 308.9);
Tailwind
colors: {
  custom: {
    50: '#915dac',
    500: '#5f1489',
    950: '#000000',
  },
}
SCSS
$custom: #5f1489;
$custom-light: #915dac;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1489",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 137
  },
  "hsl": {
    "h": 278.462,
    "s": 74.522,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38524,
    "c": 0.17738,
    "h": 308.9
  },
  "luminance": 0.04739
}

Semantic roles & 50–950 ramp

primary
#5F1489
secondary
#6ABD3C
accent
#F1377A
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1489

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

Preview Lab → · Contrast checker → · Palette generator →

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