#5F1890#5F1890

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

Color values

HEX#5F1890
RGBrgb(95, 24, 144)
HSLhsl(276, 71%, 33%)
HSVhsv(276, 83%, 56%)
CMYKcmyk(34%, 83.3%, 0%, 43.5%)
CIE-LABlab(27.02, 51.24, -51.22)
CIE-LCHlch(27.02, 72.45, 315.01°)
OKLaboklab(39.43% 0.1064 -0.1459)
OKLCHoklch(39.43% 0.181 306.1)
XYZxyz(10.0789, 5.0999, 26.8336)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1890 #499018
analogous
#231890 #5F1890 #901885
triadic
#5F1890 #905F18 #18905F
tetradic
#5F1890 #902318 #499018 #188590
square
#5F1890 #902318 #499018 #188590
split-complementary
#5F1890 #859018 #189023
monochromatic
#1A0727 #3C0F5C #5F1890 #8221C4 #A043E0

Accessibility & contrast

On white

10.40
#5F1890 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5F1890 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1890
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1890#FFFFFF#000000##FFFFFF
##5F18901.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1890;
/* rgb */ color: rgb(95, 24, 144);
/* oklch */ color: oklch(39.4% 0.181 306.1);
Tailwind
colors: {
  custom: {
    50: '#925fb1',
    500: '#5f1890',
    950: '#000000',
  },
}
SCSS
$custom: #5f1890;
$custom-light: #925fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1890",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 144
  },
  "hsl": {
    "h": 275.5,
    "s": 71.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39431,
    "c": 0.18058,
    "h": 306.1
  },
  "luminance": 0.051
}

Semantic roles & 50–950 ramp

primary
#5F1890
secondary
#76C043
accent
#EE3A83
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #5F1890

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

Preview Lab → · Contrast checker → · Palette generator →

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