#5F1790#5F1790

#5F1790 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.181 H 306.2°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#5F1790
RGBrgb(95, 23, 144)
HSLhsl(276, 72%, 33%)
HSVhsv(276, 84%, 56%)
CMYKcmyk(34%, 84%, 0%, 43.5%)
CIE-LABlab(26.90, 51.57, -51.41)
CIE-LCHlch(26.90, 72.82, 315.09°)
OKLaboklab(39.35% 0.1071 -0.1465)
OKLCHoklch(39.35% 0.181 306.2)
XYZxyz(10.0586, 5.0594, 26.8268)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1790 #489017
analogous
#221790 #5F1790 #901785
triadic
#5F1790 #905F17 #17905F
tetradic
#5F1790 #902217 #489017 #178590
square
#5F1790 #902217 #489017 #178590
split-complementary
#5F1790 #859017 #179022
monochromatic
#190626 #3C0F5B #5F1790 #821FC5 #A041E1

Accessibility & contrast

On white

10.44
#5F1790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5F1790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1790
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1790#FFFFFF#000000##FFFFFF
##5F17901.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E93
Deuteranopia (green-blind)
#00408E
Tritanopia (blue-blind)
#563855
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f1790;
/* rgb */ color: rgb(95, 23, 144);
/* oklch */ color: oklch(39.4% 0.181 306.2);
Tailwind
colors: {
  custom: {
    50: '#925fb1',
    500: '#5f1790',
    950: '#000000',
  },
}
SCSS
$custom: #5f1790;
$custom-light: #925fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1790",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 275.702,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39352,
    "c": 0.18145,
    "h": 306.2
  },
  "luminance": 0.05059
}

Semantic roles & 50–950 ramp

primary
#5F1790
secondary
#75C142
accent
#EF3983
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #5F1790

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

Preview Lab → · Contrast checker → · Palette generator →

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