#5D4E95#5D4E95

#5D4E95 is a mid, moderate violet. Relative luminance 0.099; OKLCH L 47.3% C 0.112 H 291.2°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#5D4E95
RGBrgb(93, 78, 149)
HSLhsl(253, 31%, 45%)
HSVhsv(253, 48%, 58%)
CMYKcmyk(37.6%, 47.7%, 0%, 41.6%)
CIE-LABlab(37.74, 23.71, -37.02)
CIE-LCHlch(37.74, 43.96, 302.64°)
OKLaboklab(47.29% 0.0406 -0.1044)
OKLCHoklch(47.29% 0.112 291.2)
XYZxyz(12.6620, 9.9455, 29.6805)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4E95 #86954E
analogous
#4E6395 #5D4E95 #814E95
triadic
#5D4E95 #955D4E #4E955D
tetradic
#5D4E95 #954E63 #86954E #4E9581
square
#5D4E95 #954E63 #86954E #4E9581
split-complementary
#5D4E95 #95814E #63954E
monochromatic
#2B2445 #44396D #5D4E95 #7C6DB3 #A096C8

Accessibility & contrast

On white

7.03
#5D4E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5D4E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D4E95
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4E95#FFFFFF#000000##FFFFFF
##5D4E951.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355A98
Deuteranopia (green-blind)
#365793
Tritanopia (blue-blind)
#4F5C6A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5d4e95;
/* rgb */ color: rgb(93, 78, 149);
/* oklch */ color: oklch(47.3% 0.112 291.2);
Tailwind
colors: {
  custom: {
    50: '#8e7fb4',
    500: '#5d4e95',
    950: '#000000',
  },
}
SCSS
$custom: #5d4e95;
$custom-light: #8e7fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4e95",
  "rgb": {
    "r": 93,
    "g": 78,
    "b": 149
  },
  "hsl": {
    "h": 252.676,
    "s": 31.278,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47285,
    "c": 0.11204,
    "h": 291.2
  },
  "luminance": 0.09946
}

Semantic roles & 50–950 ramp

primary
#5D4E95
secondary
#ABB48A
accent
#C760B2
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0A11
muted
#7D7C80

Preview Lab

Preview with #5D4E95

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

Preview Lab → · Contrast checker → · Palette generator →

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