#7C2AA3#7C2AA3

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

Color values

HEX#7C2AA3
RGBrgb(124, 42, 163)
HSLhsl(281, 59%, 40%)
HSVhsv(281, 74%, 64%)
CMYKcmyk(23.9%, 74.2%, 0%, 36.1%)
CIE-LABlab(35.17, 54.05, -49.38)
CIE-LCHlch(35.17, 73.21, 317.58°)
OKLaboklab(46.52% 0.1269 -0.1396)
OKLCHoklch(46.52% 0.189 312.3)
XYZxyz(15.7498, 8.5858, 35.4708)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2AA3 #51A32A
analogous
#3F2AA3 #7C2AA3 #A32A8D
triadic
#7C2AA3 #A37C2A #2AA37C
tetradic
#7C2AA3 #A33F2A #51A32A #2A8DA3
square
#7C2AA3 #A33F2A #51A32A #2A8DA3
split-complementary
#7C2AA3 #8DA32A #2AA33F
monochromatic
#321142 #571D72 #7C2AA3 #9F3DCD #B76EDA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C2AA3#FFFFFF#000000##FFFFFF
##7C2AA31.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)
#004FA6
Deuteranopia (green-blind)
#1A54A0
Tritanopia (blue-blind)
#774564
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c2aa3;
/* rgb */ color: rgb(124, 42, 163);
/* oklch */ color: oklch(46.5% 0.189 312.3);
Tailwind
colors: {
  custom: {
    50: '#a66cbf',
    500: '#7c2aa3',
    950: '#000000',
  },
}
SCSS
$custom: #7c2aa3;
$custom-light: #a66cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2aa3",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 280.661,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46522,
    "c": 0.18865,
    "h": 312.3
  },
  "luminance": 0.08585
}

Semantic roles & 50–950 ramp

primary
#7C2AA3
secondary
#85C068
accent
#E24678
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C2AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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