#7D5A97#7D5A97

#7D5A97 is a mid, moderate violet. Relative luminance 0.139; OKLCH L 52.9% C 0.101 H 309.7°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7D5A97
RGBrgb(125, 90, 151)
HSLhsl(274, 25%, 47%)
HSVhsv(274, 40%, 59%)
CMYKcmyk(17.2%, 40.4%, 0%, 40.8%)
CIE-LABlab(44.10, 26.47, -27.99)
CIE-LCHlch(44.10, 38.52, 313.41°)
OKLaboklab(52.88% 0.0643 -0.0775)
OKLCHoklch(52.88% 0.101 309.7)
XYZxyz(17.6985, 13.9069, 31.0241)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5A97 #74975A
analogous
#5F5A97 #7D5A97 #975A93
triadic
#7D5A97 #977D5A #5A977D
tetradic
#7D5A97 #975F5A #74975A #5A9397
square
#7D5A97 #975F5A #74975A #5A9397
split-complementary
#7D5A97 #93975A #5A975F
monochromatic
#3E2C4A #5D4371 #7D5A97 #9B7DB1 #B8A3C8

Accessibility & contrast

On white

5.55
#7D5A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#7D5A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5A97
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5A97#FFFFFF#000000##FFFFFF
##7D5A971.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6799
Deuteranopia (green-blind)
#566995
Tritanopia (blue-blind)
#7A6371
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7d5a97;
/* rgb */ color: rgb(125, 90, 151);
/* oklch */ color: oklch(52.9% 0.101 309.7);
Tailwind
colors: {
  custom: {
    50: '#a489b6',
    500: '#7d5a97',
    950: '#000000',
  },
}
SCSS
$custom: #7d5a97;
$custom-light: #a489b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5a97",
  "rgb": {
    "r": 125,
    "g": 90,
    "b": 151
  },
  "hsl": {
    "h": 274.426,
    "s": 25.311,
    "l": 47.255
  },
  "oklch": {
    "l": 0.52875,
    "c": 0.10068,
    "h": 309.7
  },
  "luminance": 0.13907
}

Semantic roles & 50–950 ramp

primary
#7D5A97
secondary
#A4B697
accent
#C2668D
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#0F0B11
muted
#7F7C80

Preview Lab

Preview with #7D5A97

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

Preview Lab → · Contrast checker → · Palette generator →

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