#7E5D99#7E5D99

#7E5D99 is a mid, moderate violet. Relative luminance 0.146; OKLCH L 53.6% C 0.098 H 308.7°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7E5D99
RGBrgb(126, 93, 153)
HSLhsl(273, 24%, 48%)
HSVhsv(273, 39%, 60%)
CMYKcmyk(17.6%, 39.2%, 0%, 40%)
CIE-LABlab(45.03, 25.48, -27.72)
CIE-LCHlch(45.03, 37.65, 312.59°)
OKLaboklab(53.64% 0.0614 -0.0767)
OKLCHoklch(53.64% 0.098 308.7)
XYZxyz(18.2672, 14.5644, 31.9797)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5D99 #78995D
analogous
#605D99 #7E5D99 #995D96
triadic
#7E5D99 #997E5D #5D997E
tetradic
#7E5D99 #99605D #78995D #5D9699
square
#7E5D99 #99605D #78995D #5D9699
split-complementary
#7E5D99 #96995D #5D9960
monochromatic
#3F2F4D #5F4673 #7E5D99 #9C81B2 #BAA7C9

Accessibility & contrast

On white

5.37
#7E5D99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#7E5D99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5D99
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5D99#FFFFFF#000000##FFFFFF
##7E5D991.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#51699B
Deuteranopia (green-blind)
#586B97
Tritanopia (blue-blind)
#7B6674
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e5d99;
/* rgb */ color: rgb(126, 93, 153);
/* oklch */ color: oklch(53.6% 0.098 308.7);
Tailwind
colors: {
  custom: {
    50: '#a48bb7',
    500: '#7e5d99',
    950: '#000000',
  },
}
SCSS
$custom: #7e5d99;
$custom-light: #a48bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5d99",
  "rgb": {
    "r": 126,
    "g": 93,
    "b": 153
  },
  "hsl": {
    "h": 273,
    "s": 24.39,
    "l": 48.235
  },
  "oklch": {
    "l": 0.53635,
    "c": 0.09823,
    "h": 308.7
  },
  "luminance": 0.14564
}

Semantic roles & 50–950 ramp

primary
#7E5D99
secondary
#A7B89A
accent
#C1678F
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#0F0C11
muted
#7F7D80

Preview Lab

Preview with #7E5D99

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

Preview Lab → · Contrast checker → · Palette generator →

#7E5D99 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva