#7C2EA2#7C2EA2

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

Color values

HEX#7C2EA2
RGBrgb(124, 46, 162)
HSLhsl(280, 56%, 41%)
HSVhsv(280, 72%, 64%)
CMYKcmyk(23.5%, 71.6%, 0%, 36.5%)
CIE-LABlab(35.69, 52.18, -47.95)
CIE-LCHlch(35.69, 70.86, 317.42°)
OKLaboklab(46.87% 0.1229 -0.1354)
OKLCHoklch(46.87% 0.183 312.2)
XYZxyz(15.8096, 8.8481, 35.0505)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EA2 #54A22E
analogous
#422EA2 #7C2EA2 #A22E8E
triadic
#7C2EA2 #A27C2E #2EA27C
tetradic
#7C2EA2 #A2422E #54A22E #2E8EA2
square
#7C2EA2 #A2422E #54A22E #2E8EA2
split-complementary
#7C2EA2 #8EA22E #2EA242
monochromatic
#331343 #582072 #7C2EA2 #9E43CA #B673D7

Accessibility & contrast

On white

7.58
#7C2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7C2EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2EA2
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EA2#FFFFFF#000000##FFFFFF
##7C2EA21.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c2ea2;
/* rgb */ color: rgb(124, 46, 162);
/* oklch */ color: oklch(46.9% 0.183 312.2);
Tailwind
colors: {
  custom: {
    50: '#a66ebe',
    500: '#7c2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ea2;
$custom-light: #a66ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ea2",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 280.345,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46866,
    "c": 0.1829,
    "h": 312.2
  },
  "luminance": 0.08848
}

Semantic roles & 50–950 ramp

primary
#7C2EA2
secondary
#88BF6D
accent
#DF497A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7C2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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