#5D4E8F#5D4E8F

#5D4E8F is a mid, moderate violet. Relative luminance 0.098; OKLCH L 46.9% C 0.103 H 292.6°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5D4E8F
RGBrgb(93, 78, 143)
HSLhsl(254, 29%, 43%)
HSVhsv(254, 45%, 56%)
CMYKcmyk(35%, 45.5%, 0%, 43.9%)
CIE-LABlab(37.41, 21.99, -33.91)
CIE-LCHlch(37.41, 40.42, 302.95°)
OKLaboklab(46.92% 0.0397 -0.0954)
OKLCHoklch(46.92% 0.103 292.6)
XYZxyz(12.1952, 9.7589, 27.2224)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4E8F #808F4E
analogous
#4E5F8F #5D4E8F #7D4E8F
triadic
#5D4E8F #8F5D4E #4E8F5D
tetradic
#5D4E8F #8F4E5F #808F4E #4E8F7D
square
#5D4E8F #8F4E5F #808F4E #4E8F7D
split-complementary
#5D4E8F #8F7D4E #5F8F4E
monochromatic
#292340 #433867 #5D4E8F #7B6CAF #9F93C4

Accessibility & contrast

On white

7.11
#5D4E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5D4E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D4E8F
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4E8F#FFFFFF#000000##FFFFFF
##5D4E8F1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395991
Deuteranopia (green-blind)
#3B578D
Tritanopia (blue-blind)
#515A67
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d4e8f;
/* rgb */ color: rgb(93, 78, 143);
/* oklch */ color: oklch(46.9% 0.103 292.6);
Tailwind
colors: {
  custom: {
    50: '#8d7fb0',
    500: '#5d4e8f',
    950: '#000000',
  },
}
SCSS
$custom: #5d4e8f;
$custom-light: #8d7fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4e8f",
  "rgb": {
    "r": 93,
    "g": 78,
    "b": 143
  },
  "hsl": {
    "h": 253.846,
    "s": 29.412,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4692,
    "c": 0.10331,
    "h": 292.6
  },
  "luminance": 0.09759
}

Semantic roles & 50–950 ramp

primary
#5D4E8F
secondary
#A7B188
accent
#C662AF
background
#F8F7FA
surface
#F0EEF5
border
#CBC9CF
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5D4E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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