#7A2DA0#7A2DA0

#7A2DA0 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.3% C 0.181 H 312.1°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7A2DA0
RGBrgb(122, 45, 160)
HSLhsl(280, 56%, 40%)
HSVhsv(280, 72%, 63%)
CMYKcmyk(23.7%, 71.9%, 0%, 37.3%)
CIE-LABlab(35.11, 51.74, -47.69)
CIE-LCHlch(35.11, 70.37, 317.33°)
OKLaboklab(46.35% 0.1216 -0.1347)
OKLCHoklch(46.35% 0.181 312.1)
XYZxyz(15.3084, 8.5528, 34.0953)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2DA0 #53A02D
analogous
#402DA0 #7A2DA0 #A02D8C
triadic
#7A2DA0 #A07A2D #2DA07A
tetradic
#7A2DA0 #A0402D #53A02D #2D8CA0
square
#7A2DA0 #A0402D #53A02D #2D8CA0
split-complementary
#7A2DA0 #8CA02D #2DA040
monochromatic
#311240 #562070 #7A2DA0 #9C41C9 #B570D7

Accessibility & contrast

On white

7.75
#7A2DA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7A2DA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2DA0
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2DA0#FFFFFF#000000##FFFFFF
##7A2DA01.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA3
Deuteranopia (green-blind)
#1F549D
Tritanopia (blue-blind)
#754663
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2da0;
/* rgb */ color: rgb(122, 45, 160);
/* oklch */ color: oklch(46.3% 0.181 312.1);
Tailwind
colors: {
  custom: {
    50: '#a46dbd',
    500: '#7a2da0',
    950: '#000000',
  },
}
SCSS
$custom: #7a2da0;
$custom-light: #a46dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2da0",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 160
  },
  "hsl": {
    "h": 280.174,
    "s": 56.098,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46347,
    "c": 0.18148,
    "h": 312.1
  },
  "luminance": 0.08552
}

Semantic roles & 50–950 ramp

primary
#7A2DA0
secondary
#86BE6B
accent
#DF487A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2DA0

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

Preview Lab → · Contrast checker → · Palette generator →

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