#7A2DA1#7A2DA1

#7A2DA1 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.4% C 0.182 H 311.7°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#7A2DA1
RGBrgb(122, 45, 161)
HSLhsl(280, 56%, 40%)
HSVhsv(280, 72%, 63%)
CMYKcmyk(24.2%, 72%, 0%, 36.9%)
CIE-LABlab(35.18, 51.96, -48.19)
CIE-LCHlch(35.18, 70.87, 317.16°)
OKLaboklab(46.42% 0.1215 -0.1362)
OKLCHoklch(46.42% 0.182 311.7)
XYZxyz(15.3963, 8.5880, 34.5579)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2DA1 #54A12D
analogous
#402DA1 #7A2DA1 #A12D8E
triadic
#7A2DA1 #A17A2D #2DA17A
tetradic
#7A2DA1 #A1402D #54A12D #2D8EA1
square
#7A2DA1 #A1402D #54A12D #2D8EA1
split-complementary
#7A2DA1 #8EA12D #2DA140
monochromatic
#321241 #562071 #7A2DA1 #9C41CA #B571D7

Accessibility & contrast

On white

7.73
#7A2DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7A2DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2DA1
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2DA1#FFFFFF#000000##FFFFFF
##7A2DA11.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#1E549E
Tritanopia (blue-blind)
#754664
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2da1;
/* rgb */ color: rgb(122, 45, 161);
/* oklch */ color: oklch(46.4% 0.182 311.7);
Tailwind
colors: {
  custom: {
    50: '#a46dbd',
    500: '#7a2da1',
    950: '#000000',
  },
}
SCSS
$custom: #7a2da1;
$custom-light: #a46dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2da1",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 279.828,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46419,
    "c": 0.18248,
    "h": 311.7
  },
  "luminance": 0.08588
}

Semantic roles & 50–950 ramp

primary
#7A2DA1
secondary
#87BF6B
accent
#E0487B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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