#5D4F97#5D4F97

#5D4F97 is a mid, moderate violet. Relative luminance 0.102; OKLCH L 47.6% C 0.113 H 290.4°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#5D4F97
RGBrgb(93, 79, 151)
HSLhsl(252, 31%, 45%)
HSVhsv(252, 48%, 59%)
CMYKcmyk(38.4%, 47.7%, 0%, 40.8%)
CIE-LABlab(38.12, 23.66, -37.63)
CIE-LCHlch(38.12, 44.45, 302.16°)
OKLaboklab(47.6% 0.0394 -0.1062)
OKLCHoklch(47.6% 0.113 290.4)
XYZxyz(12.8946, 10.1531, 30.5525)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4F97 #89974F
analogous
#4F6597 #5D4F97 #814F97
triadic
#5D4F97 #975D4F #4F975D
tetradic
#5D4F97 #974F65 #89974F #4F9781
square
#5D4F97 #974F65 #89974F #4F9781
split-complementary
#5D4F97 #97814F #65974F
monochromatic
#2C2547 #443A6F #5D4F97 #7D6FB4 #A198C9

Accessibility & contrast

On white

6.93
#5D4F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5D4F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D4F97
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4F97#FFFFFF#000000##FFFFFF
##5D4F971.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355B9A
Deuteranopia (green-blind)
#365895
Tritanopia (blue-blind)
#4E5D6C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5d4f97;
/* rgb */ color: rgb(93, 79, 151);
/* oklch */ color: oklch(47.6% 0.113 290.4);
Tailwind
colors: {
  custom: {
    50: '#8e80b6',
    500: '#5d4f97',
    950: '#000000',
  },
}
SCSS
$custom: #5d4f97;
$custom-light: #8e80b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4f97",
  "rgb": {
    "r": 93,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 251.667,
    "s": 31.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47602,
    "c": 0.11333,
    "h": 290.4
  },
  "luminance": 0.10153
}

Semantic roles & 50–950 ramp

primary
#5D4F97
secondary
#AEB68C
accent
#C760B3
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0A11
muted
#7D7C80

Preview Lab

Preview with #5D4F97

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

Preview Lab → · Contrast checker → · Palette generator →

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