#7C2AA2#7C2AA2

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

Color values

HEX#7C2AA2
RGBrgb(124, 42, 162)
HSLhsl(281, 59%, 40%)
HSVhsv(281, 74%, 64%)
CMYKcmyk(23.5%, 74.1%, 0%, 36.5%)
CIE-LABlab(35.10, 53.84, -48.90)
CIE-LCHlch(35.10, 72.73, 317.75°)
OKLaboklab(46.45% 0.127 -0.1382)
OKLCHoklch(46.45% 0.188 312.6)
XYZxyz(15.6606, 8.5501, 35.0008)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2AA2 #50A22A
analogous
#402AA2 #7C2AA2 #A22A8C
triadic
#7C2AA2 #A27C2A #2AA27C
tetradic
#7C2AA2 #A2402A #50A22A #2A8CA2
square
#7C2AA2 #A2402A #50A22A #2A8CA2
split-complementary
#7C2AA2 #8CA22A #2AA240
monochromatic
#321141 #571D71 #7C2AA2 #9F3DCD #B76DD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C2AA2#FFFFFF#000000##FFFFFF
##7C2AA21.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)
#004EA5
Deuteranopia (green-blind)
#1C549F
Tritanopia (blue-blind)
#784564
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c2aa2;
/* rgb */ color: rgb(124, 42, 162);
/* oklch */ color: oklch(46.4% 0.188 312.6);
Tailwind
colors: {
  custom: {
    50: '#a66cbe',
    500: '#7c2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #7c2aa2;
$custom-light: #a66cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2aa2",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 281,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.46449,
    "c": 0.18769,
    "h": 312.6
  },
  "luminance": 0.0855
}

Semantic roles & 50–950 ramp

primary
#7C2AA2
secondary
#84C068
accent
#E24677
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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