#7A5F8D#7A5F8D

#7A5F8D is a mid, moderate violet. Relative luminance 0.142; OKLCH L 53.0% C 0.077 H 310.7°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#7A5F8D
RGBrgb(122, 95, 141)
HSLhsl(275, 19%, 46%)
HSVhsv(275, 33%, 55%)
CMYKcmyk(13.5%, 32.6%, 0%, 44.7%)
CIE-LABlab(44.58, 20.17, -21.28)
CIE-LCHlch(44.58, 29.32, 313.46°)
OKLaboklab(53.02% 0.0502 -0.0584)
OKLCHoklch(53.02% 0.077 310.7)
XYZxyz(16.9251, 14.2453, 27.0521)
Luminance0.1424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5F8D #728D5F
analogous
#635F8D #7A5F8D #8D5F89
triadic
#7A5F8D #8D7A5F #5F8D7A
tetradic
#7A5F8D #8D635F #728D5F #5F898D
square
#7A5F8D #8D635F #728D5F #5F898D
split-complementary
#7A5F8D #898D5F #5F8D63
monochromatic
#3B2E44 #5A4668 #7A5F8D #9880A9 #B6A4C2

Accessibility & contrast

On white

5.46
#7A5F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#7A5F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5F8D
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5F8D#FFFFFF#000000##FFFFFF
##7A5F8D1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#57688F
Deuteranopia (green-blind)
#5D6A8C
Tritanopia (blue-blind)
#786570
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7a5f8d;
/* rgb */ color: rgb(122, 95, 141);
/* oklch */ color: oklch(53.0% 0.077 310.7);
Tailwind
colors: {
  custom: {
    50: '#a18cae',
    500: '#7a5f8d',
    950: '#000000',
  },
}
SCSS
$custom: #7a5f8d;
$custom-light: #a18cae;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5f8d",
  "rgb": {
    "r": 122,
    "g": 95,
    "b": 141
  },
  "hsl": {
    "h": 275.217,
    "s": 19.492,
    "l": 46.275
  },
  "oklch": {
    "l": 0.53022,
    "c": 0.077,
    "h": 310.7
  },
  "luminance": 0.14245
}

Semantic roles & 50–950 ramp

primary
#7A5F8D
secondary
#A2B097
accent
#BC6C8D
background
#F9F8FA
surface
#F2F0F4
border
#CCCBCE
text
#0F0C10
muted
#7E7D7F

Preview Lab

Preview with #7A5F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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