#5F1485#5F1485

#5F1485 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.174 H 310.4°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#5F1485
RGBrgb(95, 20, 133)
HSLhsl(280, 74%, 30%)
HSVhsv(280, 85%, 52%)
CMYKcmyk(28.6%, 85%, 0%, 47.8%)
CIE-LABlab(25.64, 50.09, -46.61)
CIE-LCHlch(25.64, 68.42, 317.06°)
OKLaboklab(38.19% 0.1125 -0.1323)
OKLCHoklch(38.19% 0.174 310.4)
XYZxyz(9.2023, 4.6269, 22.5941)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1485 #3A8514
analogous
#271485 #5F1485 #851472
triadic
#5F1485 #855F14 #14855F
tetradic
#5F1485 #852714 #3A8514 #147285
square
#5F1485 #852714 #3A8514 #147285
split-complementary
#5F1485 #728514 #148527
monochromatic
#13041B #390C50 #5F1485 #851CBA #A633E0

Accessibility & contrast

On white

10.91
#5F1485 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5F1485 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1485
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1485#FFFFFF#000000##FFFFFF
##5F14851.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003E83
Tritanopia (blue-blind)
#5A324E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f1485;
/* rgb */ color: rgb(95, 20, 133);
/* oklch */ color: oklch(38.2% 0.174 310.4);
Tailwind
colors: {
  custom: {
    50: '#915da9',
    500: '#5f1485',
    950: '#000000',
  },
}
SCSS
$custom: #5f1485;
$custom-light: #915da9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1485",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 133
  },
  "hsl": {
    "h": 279.823,
    "s": 73.856,
    "l": 30
  },
  "oklch": {
    "l": 0.38187,
    "c": 0.17367,
    "h": 310.4
  },
  "luminance": 0.04627
}

Semantic roles & 50–950 ramp

primary
#5F1485
secondary
#66BA3B
accent
#F13776
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1485

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

Preview Lab → · Contrast checker → · Palette generator →

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