#5D507A#5D507A

#5D507A is a mid, moderate violet. Relative luminance 0.095; OKLCH L 46.2% C 0.069 H 297.9°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5D507A
RGBrgb(93, 80, 122)
HSLhsl(259, 21%, 40%)
HSVhsv(259, 34%, 48%)
CMYKcmyk(23.8%, 34.4%, 0%, 52.2%)
CIE-LABlab(36.87, 14.98, -21.89)
CIE-LCHlch(36.87, 26.52, 304.40°)
OKLaboklab(46.17% 0.0321 -0.0606)
OKLCHoklch(46.17% 0.069 297.9)
XYZxyz(10.8949, 9.4695, 19.6624)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D507A #6D7A50
analogous
#50587A #5D507A #72507A
triadic
#5D507A #7A5D50 #507A5D
tetradic
#5D507A #7A5058 #6D7A50 #507A72
square
#5D507A #7A5058 #6D7A50 #507A72
split-complementary
#5D507A #7A7250 #587A50
monochromatic
#252030 #413855 #5D507A #7A6A9D #9B8FB5

Accessibility & contrast

On white

7.26
#5D507A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5D507A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D507A
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D507A#FFFFFF#000000##FFFFFF
##5D507A1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46577C
Deuteranopia (green-blind)
#485679
Tritanopia (blue-blind)
#58575F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5d507a;
/* rgb */ color: rgb(93, 80, 122);
/* oklch */ color: oklch(46.2% 0.069 297.9);
Tailwind
colors: {
  custom: {
    50: '#8b81a0',
    500: '#5d507a',
    950: '#000000',
  },
}
SCSS
$custom: #5d507a;
$custom-light: #8b81a0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d507a",
  "rgb": {
    "r": 93,
    "g": 80,
    "b": 122
  },
  "hsl": {
    "h": 258.571,
    "s": 20.792,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46166,
    "c": 0.06853,
    "h": 297.9
  },
  "luminance": 0.0947
}

Semantic roles & 50–950 ramp

primary
#5D507A
secondary
#99A383
accent
#BD6AA4
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0C0A0E
muted
#7D7C7E

Preview Lab

Preview with #5D507A

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

Preview Lab → · Contrast checker → · Palette generator →

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