#7A5AAA#7A5AAA

#7A5AAA is a mid, vivid violet. Relative luminance 0.144; OKLCH L 53.6% C 0.125 H 300.7°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#7A5AAA
RGBrgb(122, 90, 170)
HSLhsl(264, 32%, 51%)
HSVhsv(264, 47%, 67%)
CMYKcmyk(28.2%, 47.1%, 0%, 33.3%)
CIE-LABlab(44.73, 30.24, -38.28)
CIE-LCHlch(44.73, 48.79, 308.31°)
OKLaboklab(53.59% 0.0638 -0.1074)
OKLCHoklch(53.59% 0.125 300.7)
XYZxyz(18.9362, 14.3521, 39.7950)
Luminance0.1435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5AAA #8AAA5A
analogous
#5A62AA #7A5AAA #A25AAA
triadic
#7A5AAA #AA7A5A #5AAA7A
tetradic
#7A5AAA #AA5A62 #8AAA5A #5AAAA2
square
#7A5AAA #AA5A62 #8AAA5A #5AAAA2
split-complementary
#7A5AAA #AAA25A #62AA5A
monochromatic
#402F5B #5D4483 #7A5AAA #9B82BF #BBABD4

Accessibility & contrast

On white

5.43
#7A5AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#7A5AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5AAA
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5AAA#FFFFFF#000000##FFFFFF
##7A5AAA1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4269AD
Deuteranopia (green-blind)
#4A69A8
Tritanopia (blue-blind)
#71687A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7a5aaa;
/* rgb */ color: rgb(122, 90, 170);
/* oklch */ color: oklch(53.6% 0.125 300.7);
Tailwind
colors: {
  custom: {
    50: '#a289c4',
    500: '#7a5aaa',
    950: '#000000',
  },
}
SCSS
$custom: #7a5aaa;
$custom-light: #a289c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5aaa",
  "rgb": {
    "r": 122,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 264,
    "s": 32,
    "l": 50.98
  },
  "oklch": {
    "l": 0.5359,
    "c": 0.12491,
    "h": 300.7
  },
  "luminance": 0.14352
}

Semantic roles & 50–950 ramp

primary
#7A5AAA
secondary
#B3C29E
accent
#C8609E
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0B12
muted
#7F7C81

Preview Lab

Preview with #7A5AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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