#5F1785#5F1785

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

Color values

HEX#5F1785
RGBrgb(95, 23, 133)
HSLhsl(279, 71%, 31%)
HSVhsv(279, 83%, 52%)
CMYKcmyk(28.6%, 82.7%, 0%, 47.8%)
CIE-LABlab(25.98, 49.11, -46.06)
CIE-LCHlch(25.98, 67.33, 316.84°)
OKLaboklab(38.42% 0.1102 -0.1307)
OKLCHoklch(38.42% 0.171 310.1)
XYZxyz(9.2585, 4.7394, 22.6128)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1785 #3D8517
analogous
#281785 #5F1785 #851774
triadic
#5F1785 #855F17 #17855F
tetradic
#5F1785 #852817 #3D8517 #177485
square
#5F1785 #852817 #3D8517 #177485
split-complementary
#5F1785 #748517 #178528
monochromatic
#14051D #3A0E51 #5F1785 #8420B9 #A43ADD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F1785#FFFFFF#000000##FFFFFF
##5F17851.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)
#003B88
Deuteranopia (green-blind)
#003E83
Tritanopia (blue-blind)
#5A334F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f1785;
/* rgb */ color: rgb(95, 23, 133);
/* oklch */ color: oklch(38.4% 0.171 310.1);
Tailwind
colors: {
  custom: {
    50: '#915ea9',
    500: '#5f1785',
    950: '#000000',
  },
}
SCSS
$custom: #5f1785;
$custom-light: #915ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1785",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 279.273,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3842,
    "c": 0.17098,
    "h": 310.1
  },
  "luminance": 0.04739
}

Semantic roles & 50–950 ramp

primary
#5F1785
secondary
#69B93F
accent
#ED3B78
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1785

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

Preview Lab → · Contrast checker → · Palette generator →

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