#7A2EA0#7A2EA0

#7A2EA0 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.5% C 0.180 H 312.0°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7A2EA0
RGBrgb(122, 46, 160)
HSLhsl(280, 55%, 40%)
HSVhsv(280, 71%, 63%)
CMYKcmyk(23.7%, 71.2%, 0%, 37.3%)
CIE-LABlab(35.26, 51.31, -47.45)
CIE-LCHlch(35.26, 69.89, 317.24°)
OKLaboklab(46.46% 0.1205 -0.134)
OKLCHoklch(46.46% 0.18 312)
XYZxyz(15.3470, 8.6300, 34.1082)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EA0 #54A02E
analogous
#412EA0 #7A2EA0 #A02E8D
triadic
#7A2EA0 #A07A2E #2EA07A
tetradic
#7A2EA0 #A0412E #54A02E #2E8DA0
square
#7A2EA0 #A0412E #54A02E #2E8DA0
split-complementary
#7A2EA0 #8DA02E #2EA041
monochromatic
#321341 #562070 #7A2EA0 #9C42C9 #B572D6

Accessibility & contrast

On white

7.70
#7A2EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7A2EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2EA0
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EA0#FFFFFF#000000##FFFFFF
##7A2EA01.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA3
Deuteranopia (green-blind)
#21549D
Tritanopia (blue-blind)
#754664
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2ea0;
/* rgb */ color: rgb(122, 46, 160);
/* oklch */ color: oklch(46.5% 0.180 312.0);
Tailwind
colors: {
  custom: {
    50: '#a46dbd',
    500: '#7a2ea0',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ea0;
$custom-light: #a46dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ea0",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 280,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46457,
    "c": 0.18024,
    "h": 312
  },
  "luminance": 0.0863
}

Semantic roles & 50–950 ramp

primary
#7A2EA0
secondary
#87BE6C
accent
#DF497B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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