#5F2086#5F2086

#5F2086 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.162 H 308.8°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#5F2086
RGBrgb(95, 32, 134)
HSLhsl(277, 61%, 33%)
HSVhsv(277, 76%, 53%)
CMYKcmyk(29.1%, 76.1%, 0%, 47.5%)
CIE-LABlab(27.26, 45.88, -44.61)
CIE-LCHlch(27.26, 63.99, 315.81°)
OKLaboklab(39.35% 0.1018 -0.1265)
OKLCHoklch(39.35% 0.162 308.8)
XYZxyz(9.5380, 5.1873, 23.0484)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2086 #478620
analogous
#2C2086 #5F2086 #86207A
triadic
#5F2086 #865F20 #20865F
tetradic
#5F2086 #862C20 #478620 #207A86
square
#5F2086 #862C20 #478620 #207A86
split-complementary
#5F2086 #7A8620 #20862C
monochromatic
#190823 #3C1455 #5F2086 #822CB7 #A04CD4

Accessibility & contrast

On white

10.31
#5F2086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2086
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2086#FFFFFF#000000##FFFFFF
##5F20861.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E89
Deuteranopia (green-blind)
#004184
Tritanopia (blue-blind)
#593851
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f2086;
/* rgb */ color: rgb(95, 32, 134);
/* oklch */ color: oklch(39.3% 0.162 308.8);
Tailwind
colors: {
  custom: {
    50: '#9162aa',
    500: '#5f2086',
    950: '#000000',
  },
}
SCSS
$custom: #5f2086;
$custom-light: #9162aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2086",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 134
  },
  "hsl": {
    "h": 277.059,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39347,
    "c": 0.16242,
    "h": 308.8
  },
  "luminance": 0.05187
}

Semantic roles & 50–950 ramp

primary
#5F2086
secondary
#74B74B
accent
#E54381
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F2086

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

Preview Lab → · Contrast checker → · Palette generator →

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