#7A5ABA#7A5ABA

#7A5ABA is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.5% C 0.146 H 296.6°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#7A5ABA
RGBrgb(122, 90, 186)
HSLhsl(260, 41%, 54%)
HSVhsv(260, 52%, 73%)
CMYKcmyk(34.4%, 51.6%, 0%, 27.1%)
CIE-LABlab(45.63, 34.43, -46.23)
CIE-LCHlch(45.63, 57.64, 306.67°)
OKLaboklab(54.55% 0.0655 -0.1306)
OKLCHoklch(54.55% 0.146 296.6)
XYZxyz(20.5429, 14.9948, 48.2568)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5ABA #9ABA5A
analogous
#5A6ABA #7A5ABA #AA5ABA
triadic
#7A5ABA #BA7A5A #5ABA7A
tetradic
#7A5ABA #BA5A6A #9ABA5A #5ABAAA
square
#7A5ABA #BA5A6A #9ABA5A #5ABAAA
split-complementary
#7A5ABA #BAAA5A #6ABA5A
monochromatic
#422D6C #5D3F97 #7A5ABA #9D85CC #C0B0DE

Accessibility & contrast

On white

5.25
#7A5ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#7A5ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5ABA
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5ABA#FFFFFF#000000##FFFFFF
##7A5ABA1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366CBD
Deuteranopia (green-blind)
#3E6BB8
Tritanopia (blue-blind)
#6C6D81
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7a5aba;
/* rgb */ color: rgb(122, 90, 186);
/* oklch */ color: oklch(54.5% 0.146 296.6);
Tailwind
colors: {
  custom: {
    50: '#a489cf',
    500: '#7a5aba',
    950: '#000000',
  },
}
SCSS
$custom: #7a5aba;
$custom-light: #a489cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5aba",
  "rgb": {
    "r": 122,
    "g": 90,
    "b": 186
  },
  "hsl": {
    "h": 260,
    "s": 41.026,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54547,
    "c": 0.14612,
    "h": 296.6
  },
  "luminance": 0.14995
}

Semantic roles & 50–950 ramp

primary
#7A5ABA
secondary
#BFCCA3
accent
#D157A8
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7A5ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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