#5F1990#5F1990

#5F1990 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.5% C 0.180 H 306.0°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#5F1990
RGBrgb(95, 25, 144)
HSLhsl(275, 70%, 33%)
HSVhsv(275, 83%, 56%)
CMYKcmyk(34%, 82.6%, 0%, 43.5%)
CIE-LABlab(27.14, 50.90, -51.03)
CIE-LCHlch(27.14, 72.08, 314.93°)
OKLaboklab(39.51% 0.1056 -0.1454)
OKLCHoklch(39.51% 0.18 306)
XYZxyz(10.0999, 5.1419, 26.8406)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1990 #4A9019
analogous
#231990 #5F1990 #901985
triadic
#5F1990 #905F19 #19905F
tetradic
#5F1990 #902319 #4A9019 #198590
square
#5F1990 #902319 #4A9019 #198590
split-complementary
#5F1990 #859019 #199023
monochromatic
#1A0728 #3D105C #5F1990 #8122C4 #9F45DF

Accessibility & contrast

On white

10.35
#5F1990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5F1990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1990
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1990#FFFFFF#000000##FFFFFF
##5F19901.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1990;
/* rgb */ color: rgb(95, 25, 144);
/* oklch */ color: oklch(39.5% 0.180 306.0);
Tailwind
colors: {
  custom: {
    50: '#9260b1',
    500: '#5f1990',
    950: '#000000',
  },
}
SCSS
$custom: #5f1990;
$custom-light: #9260b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1990",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 144
  },
  "hsl": {
    "h": 275.294,
    "s": 70.414,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39513,
    "c": 0.17969,
    "h": 306
  },
  "luminance": 0.05142
}

Semantic roles & 50–950 ramp

primary
#5F1990
secondary
#78C045
accent
#ED3B84
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5F1990

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

Preview Lab → · Contrast checker → · Palette generator →

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