#7A2CA0#7A2CA0

#7A2CA0 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.183 H 312.2°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7A2CA0
RGBrgb(122, 44, 160)
HSLhsl(280, 57%, 40%)
HSVhsv(280, 73%, 63%)
CMYKcmyk(23.7%, 72.5%, 0%, 37.3%)
CIE-LABlab(34.96, 52.17, -47.94)
CIE-LCHlch(34.96, 70.85, 317.42°)
OKLaboklab(46.24% 0.1226 -0.1354)
OKLCHoklch(46.24% 0.183 312.2)
XYZxyz(15.2707, 8.4774, 34.0828)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CA0 #52A02C
analogous
#402CA0 #7A2CA0 #A02C8C
triadic
#7A2CA0 #A07A2C #2CA07A
tetradic
#7A2CA0 #A0402C #52A02C #2C8CA0
square
#7A2CA0 #A0402C #52A02C #2C8CA0
split-complementary
#7A2CA0 #8CA02C #2CA040
monochromatic
#311240 #551F70 #7A2CA0 #9D3FCA #B56FD7

Accessibility & contrast

On white

7.79
#7A2CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7A2CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2CA0
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2CA0#FFFFFF#000000##FFFFFF
##7A2CA01.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#1E549D
Tritanopia (blue-blind)
#764563
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a2ca0;
/* rgb */ color: rgb(122, 44, 160);
/* oklch */ color: oklch(46.2% 0.183 312.2);
Tailwind
colors: {
  custom: {
    50: '#a46cbd',
    500: '#7a2ca0',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ca0;
$custom-light: #a46cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ca0",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 160
  },
  "hsl": {
    "h": 280.345,
    "s": 56.863,
    "l": 40
  },
  "oklch": {
    "l": 0.4624,
    "c": 0.18271,
    "h": 312.2
  },
  "luminance": 0.08477
}

Semantic roles & 50–950 ramp

primary
#7A2CA0
secondary
#85BF69
accent
#E0487A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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