#7A2CA1#7A2CA1

#7A2CA1 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.3% C 0.184 H 311.8°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7A2CA1
RGBrgb(122, 44, 161)
HSLhsl(280, 57%, 40%)
HSVhsv(280, 73%, 63%)
CMYKcmyk(24.2%, 72.7%, 0%, 36.9%)
CIE-LABlab(35.03, 52.39, -48.43)
CIE-LCHlch(35.03, 71.34, 317.25°)
OKLaboklab(46.31% 0.1225 -0.1369)
OKLCHoklch(46.31% 0.184 311.8)
XYZxyz(15.3586, 8.5126, 34.5453)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CA1 #53A12C
analogous
#3F2CA1 #7A2CA1 #A12C8D
triadic
#7A2CA1 #A17A2C #2CA17A
tetradic
#7A2CA1 #A13F2C #53A12C #2C8DA1
square
#7A2CA1 #A13F2C #53A12C #2C8DA1
split-complementary
#7A2CA1 #8DA12C #2CA13F
monochromatic
#311241 #561F71 #7A2CA1 #9C40CB #B570D8

Accessibility & contrast

On white

7.77
#7A2CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2CA1
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2CA1#FFFFFF#000000##FFFFFF
##7A2CA11.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a2ca1;
/* rgb */ color: rgb(122, 44, 161);
/* oklch */ color: oklch(46.3% 0.184 311.8);
Tailwind
colors: {
  custom: {
    50: '#a46dbd',
    500: '#7a2ca1',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ca1;
$custom-light: #a46dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ca1",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 280,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46312,
    "c": 0.18369,
    "h": 311.8
  },
  "luminance": 0.08512
}

Semantic roles & 50–950 ramp

primary
#7A2CA1
secondary
#86BF6A
accent
#E0477A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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