#7C2DA2#7C2DA2

#7C2DA2 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.184 H 312.3°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7C2DA2
RGBrgb(124, 45, 162)
HSLhsl(281, 57%, 41%)
HSVhsv(281, 72%, 64%)
CMYKcmyk(23.5%, 72.2%, 0%, 36.5%)
CIE-LABlab(35.54, 52.60, -48.19)
CIE-LCHlch(35.54, 71.34, 317.50°)
OKLaboklab(46.76% 0.124 -0.1361)
OKLCHoklch(46.76% 0.184 312.3)
XYZxyz(15.7710, 8.7709, 35.0376)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DA2 #53A22D
analogous
#412DA2 #7C2DA2 #A22D8D
triadic
#7C2DA2 #A27C2D #2DA27C
tetradic
#7C2DA2 #A2412D #53A22D #2D8DA2
square
#7C2DA2 #A2412D #53A22D #2D8DA2
split-complementary
#7C2DA2 #8DA22D #2DA241
monochromatic
#331242 #572072 #7C2DA2 #9E42CA #B772D8

Accessibility & contrast

On white

7.63
#7C2DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7C2DA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2DA2
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DA2#FFFFFF#000000##FFFFFF
##7C2DA21.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#20559F
Tritanopia (blue-blind)
#784665
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c2da2;
/* rgb */ color: rgb(124, 45, 162);
/* oklch */ color: oklch(46.8% 0.184 312.3);
Tailwind
colors: {
  custom: {
    50: '#a66dbe',
    500: '#7c2da2',
    950: '#000000',
  },
}
SCSS
$custom: #7c2da2;
$custom-light: #a66dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2da2",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 280.513,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46759,
    "c": 0.18413,
    "h": 312.3
  },
  "luminance": 0.0877
}

Semantic roles & 50–950 ramp

primary
#7C2DA2
secondary
#87BF6C
accent
#E04879
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C2DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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