#5F2087#5F2087

#5F2087 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.163 H 308.5°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#5F2087
RGBrgb(95, 32, 135)
HSLhsl(277, 62%, 33%)
HSVhsv(277, 76%, 53%)
CMYKcmyk(29.6%, 76.3%, 0%, 47.1%)
CIE-LABlab(27.34, 46.11, -45.10)
CIE-LCHlch(27.34, 64.50, 315.63°)
OKLaboklab(39.43% 0.1017 -0.128)
OKLCHoklch(39.43% 0.163 308.5)
XYZxyz(9.6081, 5.2153, 23.4175)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2087 #488720
analogous
#2B2087 #5F2087 #87207B
triadic
#5F2087 #875F20 #20875F
tetradic
#5F2087 #872B20 #488720 #207B87
square
#5F2087 #872B20 #488720 #207B87
split-complementary
#5F2087 #7B8720 #20872B
monochromatic
#190924 #3C1456 #5F2087 #822CB8 #A04DD5

Accessibility & contrast

On white

10.28
#5F2087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5F2087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2087
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2087#FFFFFF#000000##FFFFFF
##5F20871.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#593952
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f2087;
/* rgb */ color: rgb(95, 32, 135);
/* oklch */ color: oklch(39.4% 0.163 308.5);
Tailwind
colors: {
  custom: {
    50: '#9162ab',
    500: '#5f2087',
    950: '#000000',
  },
}
SCSS
$custom: #5f2087;
$custom-light: #9162ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2087",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 276.699,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39426,
    "c": 0.16345,
    "h": 308.5
  },
  "luminance": 0.05215
}

Semantic roles & 50–950 ramp

primary
#5F2087
secondary
#75B84B
accent
#E54382
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F2087

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

Preview Lab → · Contrast checker → · Palette generator →

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