#7A5AB2#7A5AB2

#7A5AB2 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.1% C 0.136 H 298.6°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7A5AB2
RGBrgb(122, 90, 178)
HSLhsl(262, 36%, 53%)
HSVhsv(262, 49%, 70%)
CMYKcmyk(31.5%, 49.4%, 0%, 30.2%)
CIE-LABlab(45.17, 32.32, -42.29)
CIE-LCHlch(45.17, 53.22, 307.39°)
OKLaboklab(54.06% 0.0648 -0.1191)
OKLCHoklch(54.06% 0.136 298.6)
XYZxyz(19.7162, 14.6641, 43.9026)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5AB2 #92B25A
analogous
#5A66B2 #7A5AB2 #A65AB2
triadic
#7A5AB2 #B27A5A #5AB27A
tetradic
#7A5AB2 #B25A66 #92B25A #5AB2A6
square
#7A5AB2 #B25A66 #92B25A #5AB2A6
split-complementary
#7A5AB2 #B2A65A #66B25A
monochromatic
#422E63 #5D428D #7A5AB2 #9C84C5 #BDADD9

Accessibility & contrast

On white

5.34
#7A5AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7A5AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5AB2
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5AB2#FFFFFF#000000##FFFFFF
##7A5AB21.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6BB5
Deuteranopia (green-blind)
#446AB0
Tritanopia (blue-blind)
#6E6B7E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7a5ab2;
/* rgb */ color: rgb(122, 90, 178);
/* oklch */ color: oklch(54.1% 0.136 298.6);
Tailwind
colors: {
  custom: {
    50: '#a389c9',
    500: '#7a5ab2',
    950: '#000000',
  },
}
SCSS
$custom: #7a5ab2;
$custom-light: #a389c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5ab2",
  "rgb": {
    "r": 122,
    "g": 90,
    "b": 178
  },
  "hsl": {
    "h": 261.818,
    "s": 36.364,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54059,
    "c": 0.13555,
    "h": 298.6
  },
  "luminance": 0.14664
}

Semantic roles & 50–950 ramp

primary
#7A5AB2
secondary
#B9C7A1
accent
#CC5BA3
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0B13
muted
#7F7C82

Preview Lab

Preview with #7A5AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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