#5D528E#5D528E

#5D528E is a mid, moderate violet. Relative luminance 0.103; OKLCH L 47.7% C 0.095 H 290.7°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5D528E
RGBrgb(93, 82, 142)
HSLhsl(251, 27%, 44%)
HSVhsv(251, 42%, 56%)
CMYKcmyk(34.5%, 42.3%, 0%, 44.3%)
CIE-LABlab(38.40, 19.19, -31.74)
CIE-LCHlch(38.40, 37.09, 301.16°)
OKLaboklab(47.65% 0.0337 -0.089)
OKLCHoklch(47.65% 0.095 290.7)
XYZxyz(12.4127, 10.3145, 26.9228)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D528E #838E52
analogous
#52658E #5D528E #7B528E
triadic
#5D528E #8E5D52 #528E5D
tetradic
#5D528E #8E5265 #838E52 #528E7B
square
#5D528E #8E5265 #838E52 #528E7B
split-complementary
#5D528E #8E7B52 #658E52
monochromatic
#2A2540 #443C67 #5D528E #7C70AD #9F97C3

Accessibility & contrast

On white

6.86
#5D528E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5D528E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D528E
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D528E#FFFFFF#000000##FFFFFF
##5D528E1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5B90
Deuteranopia (green-blind)
#40598D
Tritanopia (blue-blind)
#515D69
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5d528e;
/* rgb */ color: rgb(93, 82, 142);
/* oklch */ color: oklch(47.7% 0.095 290.7);
Tailwind
colors: {
  custom: {
    50: '#8d82af',
    500: '#5d528e',
    950: '#000000',
  },
}
SCSS
$custom: #5d528e;
$custom-light: #8d82af;
$custom-dark: #000000;
JSON
{
  "hex": "#5d528e",
  "rgb": {
    "r": 93,
    "g": 82,
    "b": 142
  },
  "hsl": {
    "h": 251,
    "s": 26.786,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47655,
    "c": 0.09521,
    "h": 290.7
  },
  "luminance": 0.10315
}

Semantic roles & 50–950 ramp

primary
#5D528E
secondary
#A9B08C
accent
#C365B2
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5D528E

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

Preview Lab → · Contrast checker → · Palette generator →

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