#5D2687#5D2687

#5D2687 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.8% C 0.155 H 306.5°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#5D2687
RGBrgb(93, 38, 135)
HSLhsl(274, 56%, 34%)
HSVhsv(274, 72%, 53%)
CMYKcmyk(31.1%, 71.9%, 0%, 47.1%)
CIE-LABlab(28.01, 42.97, -44.02)
CIE-LCHlch(28.01, 61.52, 314.30°)
OKLaboklab(39.84% 0.0925 -0.1249)
OKLCHoklch(39.84% 0.155 306.5)
XYZxyz(9.5795, 5.4628, 23.4667)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2687 #508726
analogous
#2D2687 #5D2687 #872681
triadic
#5D2687 #875D26 #26875D
tetradic
#5D2687 #872D26 #508726 #268187
square
#5D2687 #872D26 #508726 #268187
split-complementary
#5D2687 #818726 #26872D
monochromatic
#1B0B27 #3C1957 #5D2687 #7E33B7 #9C58D0

Accessibility & contrast

On white

10.04
#5D2687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5D2687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2687
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2687#FFFFFF#000000##FFFFFF
##5D26871.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#054285
Tritanopia (blue-blind)
#563C53
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d2687;
/* rgb */ color: rgb(93, 38, 135);
/* oklch */ color: oklch(39.8% 0.155 306.5);
Tailwind
colors: {
  custom: {
    50: '#8f65ab',
    500: '#5d2687',
    950: '#000000',
  },
}
SCSS
$custom: #5d2687;
$custom-light: #8f65ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2687",
  "rgb": {
    "r": 93,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 274.021,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39844,
    "c": 0.15544,
    "h": 306.5
  },
  "luminance": 0.05463
}

Semantic roles & 50–950 ramp

primary
#5D2687
secondary
#7EB554
accent
#DF488A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2687

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

Preview Lab → · Contrast checker → · Palette generator →

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