#5F2986#5F2986

#5F2986 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.151 H 307.6°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#5F2986
RGBrgb(95, 41, 134)
HSLhsl(275, 53%, 34%)
HSVhsv(275, 69%, 53%)
CMYKcmyk(29.1%, 69.4%, 0%, 47.5%)
CIE-LABlab(28.75, 41.70, -42.20)
CIE-LCHlch(28.75, 59.33, 314.65°)
OKLaboklab(40.4% 0.092 -0.1195)
OKLCHoklch(40.4% 0.151 307.6)
XYZxyz(9.8144, 5.7401, 23.1406)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2986 #508629
analogous
#312986 #5F2986 #86297F
triadic
#5F2986 #865F29 #29865F
tetradic
#5F2986 #863129 #508629 #297F86
square
#5F2986 #863129 #508629 #297F86
split-complementary
#5F2986 #7F8629 #298631
monochromatic
#1D0C28 #3E1B57 #5F2986 #8037B5 #9E5CCD

Accessibility & contrast

On white

9.78
#5F2986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5F2986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2986
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2986#FFFFFF#000000##FFFFFF
##5F29861.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#144484
Tritanopia (blue-blind)
#593D54
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2986;
/* rgb */ color: rgb(95, 41, 134);
/* oklch */ color: oklch(40.4% 0.151 307.6);
Tailwind
colors: {
  custom: {
    50: '#9067aa',
    500: '#5f2986',
    950: '#000000',
  },
}
SCSS
$custom: #5f2986;
$custom-light: #9067aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2986",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 274.839,
    "s": 53.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40404,
    "c": 0.15085,
    "h": 307.6
  },
  "luminance": 0.0574
}

Semantic roles & 50–950 ramp

primary
#5F2986
secondary
#7EB358
accent
#DD4B88
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2986

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

Preview Lab → · Contrast checker → · Palette generator →

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