#7E5D97#7E5D97

#7E5D97 is a mid, moderate violet. Relative luminance 0.145; OKLCH L 53.5% C 0.096 H 309.6°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7E5D97
RGBrgb(126, 93, 151)
HSLhsl(274, 24%, 48%)
HSVhsv(274, 38%, 59%)
CMYKcmyk(16.6%, 38.4%, 0%, 40.8%)
CIE-LABlab(44.94, 25.01, -26.67)
CIE-LCHlch(44.94, 36.56, 313.16°)
OKLaboklab(53.54% 0.0609 -0.0737)
OKLCHoklch(53.54% 0.096 309.6)
XYZxyz(18.1034, 14.4989, 31.1170)
Luminance0.1450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5D97 #76975D
analogous
#615D97 #7E5D97 #975D93
triadic
#7E5D97 #977E5D #5D977E
tetradic
#7E5D97 #97615D #76975D #5D9397
square
#7E5D97 #97615D #76975D #5D9397
split-complementary
#7E5D97 #93975D #5D9761
monochromatic
#3F2E4B #5E4671 #7E5D97 #9C80B1 #BAA6C8

Accessibility & contrast

On white

5.38
#7E5D97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7E5D97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5D97
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5D97#FFFFFF#000000##FFFFFF
##7E5D971.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#526999
Deuteranopia (green-blind)
#596B95
Tritanopia (blue-blind)
#7B6573
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e5d97;
/* rgb */ color: rgb(126, 93, 151);
/* oklch */ color: oklch(53.5% 0.096 309.6);
Tailwind
colors: {
  custom: {
    50: '#a48bb6',
    500: '#7e5d97',
    950: '#000000',
  },
}
SCSS
$custom: #7e5d97;
$custom-light: #a48bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5d97",
  "rgb": {
    "r": 126,
    "g": 93,
    "b": 151
  },
  "hsl": {
    "h": 274.138,
    "s": 23.77,
    "l": 47.843
  },
  "oklch": {
    "l": 0.53536,
    "c": 0.0956,
    "h": 309.6
  },
  "luminance": 0.14499
}

Semantic roles & 50–950 ramp

primary
#7E5D97
secondary
#A6B699
accent
#C0688E
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#0F0C11
muted
#7F7D80

Preview Lab

Preview with #7E5D97

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

Preview Lab → · Contrast checker → · Palette generator →

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