#5F2891#5F2891

#5F2891 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.164 H 303.9°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#5F2891
RGBrgb(95, 40, 145)
HSLhsl(271, 57%, 36%)
HSVhsv(271, 72%, 57%)
CMYKcmyk(34.5%, 72.4%, 0%, 43.1%)
CIE-LABlab(29.40, 44.89, -47.97)
CIE-LCHlch(29.40, 65.70, 313.10°)
OKLaboklab(41.13% 0.0916 -0.1365)
OKLCHoklch(41.13% 0.164 303.9)
XYZxyz(10.5878, 5.9948, 27.3819)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2891 #5A9128
analogous
#2B2891 #5F2891 #91288F
triadic
#5F2891 #915F28 #28915F
tetradic
#5F2891 #912B28 #5A9128 #288F91
square
#5F2891 #912B28 #5A9128 #288F91
split-complementary
#5F2891 #8F9128 #28912B
monochromatic
#200E31 #401B61 #5F2891 #7E35C1 #9C60D3

Accessibility & contrast

On white

9.55
#5F2891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5F2891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2891
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2891#FFFFFF#000000##FFFFFF
##5F28911.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004494
Deuteranopia (green-blind)
#00458F
Tritanopia (blue-blind)
#55415A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f2891;
/* rgb */ color: rgb(95, 40, 145);
/* oklch */ color: oklch(41.1% 0.164 303.9);
Tailwind
colors: {
  custom: {
    50: '#9167b2',
    500: '#5f2891',
    950: '#000000',
  },
}
SCSS
$custom: #5f2891;
$custom-light: #9167b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2891",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 271.429,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41131,
    "c": 0.16434,
    "h": 303.9
  },
  "luminance": 0.05995
}

Semantic roles & 50–950 ramp

primary
#5F2891
secondary
#88B95C
accent
#E04890
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2891

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

Preview Lab → · Contrast checker → · Palette generator →

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