#7C2EA3#7C2EA3

#7C2EA3 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.184 H 311.9°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7C2EA3
RGBrgb(124, 46, 163)
HSLhsl(280, 56%, 41%)
HSVhsv(280, 72%, 64%)
CMYKcmyk(23.9%, 71.8%, 0%, 36.1%)
CIE-LABlab(35.76, 52.39, -48.44)
CIE-LCHlch(35.76, 71.35, 317.25°)
OKLaboklab(46.94% 0.1228 -0.1369)
OKLCHoklch(46.94% 0.184 311.9)
XYZxyz(15.8988, 8.8838, 35.5205)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EA3 #55A32E
analogous
#412EA3 #7C2EA3 #A32E8F
triadic
#7C2EA3 #A37C2E #2EA37C
tetradic
#7C2EA3 #A3412E #55A32E #2E8FA3
square
#7C2EA3 #A3412E #55A32E #2E8FA3
split-complementary
#7C2EA3 #8FA32E #2EA341
monochromatic
#331344 #582173 #7C2EA3 #9D44CA #B674D8

Accessibility & contrast

On white

7.56
#7C2EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7C2EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2EA3
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EA3#FFFFFF#000000##FFFFFF
##7C2EA31.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#1F56A0
Tritanopia (blue-blind)
#774765
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c2ea3;
/* rgb */ color: rgb(124, 46, 163);
/* oklch */ color: oklch(46.9% 0.184 311.9);
Tailwind
colors: {
  custom: {
    50: '#a66ebf',
    500: '#7c2ea3',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ea3;
$custom-light: #a66ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ea3",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 280,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46937,
    "c": 0.18389,
    "h": 311.9
  },
  "luminance": 0.08883
}

Semantic roles & 50–950 ramp

primary
#7C2EA3
secondary
#89BF6D
accent
#DF497B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7C2EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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