#5D387F#5D387F

#5D387F is a dark, moderate violet. Relative luminance 0.067; OKLCH L 41.9% C 0.119 H 306.0°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#5D387F
RGBrgb(93, 56, 127)
HSLhsl(271, 39%, 36%)
HSVhsv(271, 56%, 50%)
CMYKcmyk(26.8%, 55.9%, 0%, 50.2%)
CIE-LABlab(31.09, 31.17, -34.10)
CIE-LCHlch(31.09, 46.20, 312.43°)
OKLaboklab(41.9% 0.0696 -0.0959)
OKLCHoklch(41.9% 0.119 306)
XYZxyz(9.7583, 6.6879, 20.8514)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D387F #5A7F38
analogous
#39387F #5D387F #7F387D
triadic
#5D387F #7F5D38 #387F5D
tetradic
#5D387F #7F3938 #5A7F38 #387D7F
square
#5D387F #7F3938 #5A7F38 #387D7F
split-complementary
#5D387F #7D7F38 #387F39
monochromatic
#1F132A #3E2555 #5D387F #7C4BA9 #9A71C0

Accessibility & contrast

On white

8.98
#5D387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5D387F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D387F
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D387F#FFFFFF#000000##FFFFFF
##5D387F1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204881
Deuteranopia (green-blind)
#2D497D
Tritanopia (blue-blind)
#584556
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d387f;
/* rgb */ color: rgb(93, 56, 127);
/* oklch */ color: oklch(41.9% 0.119 306.0);
Tailwind
colors: {
  custom: {
    50: '#8d70a4',
    500: '#5d387f',
    950: '#000000',
  },
}
SCSS
$custom: #5d387f;
$custom-light: #8d70a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d387f",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 271.268,
    "s": 38.798,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41899,
    "c": 0.11851,
    "h": 306
  },
  "luminance": 0.06688
}

Semantic roles & 50–950 ramp

primary
#5D387F
secondary
#88A969
accent
#CF5991
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5D387F

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

Preview Lab → · Contrast checker → · Palette generator →

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