#7A5BA7#7A5BA7

#7A5BA7 is a mid, moderate violet. Relative luminance 0.144; OKLCH L 53.6% C 0.119 H 301.3°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#7A5BA7
RGBrgb(122, 91, 167)
HSLhsl(264, 30%, 51%)
HSVhsv(264, 46%, 65%)
CMYKcmyk(26.9%, 45.5%, 0%, 34.5%)
CIE-LABlab(44.81, 28.88, -36.38)
CIE-LCHlch(44.81, 46.46, 308.44°)
OKLaboklab(53.6% 0.062 -0.1018)
OKLCHoklch(53.6% 0.119 301.3)
XYZxyz(18.7406, 14.4097, 38.3458)
Luminance0.1441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5BA7 #88A75B
analogous
#5B62A7 #7A5BA7 #A05BA7
triadic
#7A5BA7 #A77A5B #5BA77A
tetradic
#7A5BA7 #A75B62 #88A75B #5BA7A0
square
#7A5BA7 #A75B62 #88A75B #5BA7A0
split-complementary
#7A5BA7 #A7A05B #62A75B
monochromatic
#402F58 #5D4580 #7A5BA7 #9A83BC #BBABD2

Accessibility & contrast

On white

5.41
#7A5BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#7A5BA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5BA7
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5BA7#FFFFFF#000000##FFFFFF
##7A5BA71.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#466AAA
Deuteranopia (green-blind)
#4D6AA5
Tritanopia (blue-blind)
#726879
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7a5ba7;
/* rgb */ color: rgb(122, 91, 167);
/* oklch */ color: oklch(53.6% 0.119 301.3);
Tailwind
colors: {
  custom: {
    50: '#a28ac1',
    500: '#7a5ba7',
    950: '#000000',
  },
}
SCSS
$custom: #7a5ba7;
$custom-light: #a28ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5ba7",
  "rgb": {
    "r": 122,
    "g": 91,
    "b": 167
  },
  "hsl": {
    "h": 264.474,
    "s": 30.159,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53599,
    "c": 0.11921,
    "h": 301.3
  },
  "luminance": 0.1441
}

Semantic roles & 50–950 ramp

primary
#7A5BA7
secondary
#B2C09E
accent
#C6619D
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#0F0B12
muted
#7F7C81

Preview Lab

Preview with #7A5BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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