#7C2AAE#7C2AAE

#7C2AAE is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.3% C 0.199 H 308.8°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7C2AAE
RGBrgb(124, 42, 174)
HSLhsl(277, 61%, 42%)
HSVhsv(277, 76%, 68%)
CMYKcmyk(28.7%, 75.9%, 0%, 31.8%)
CIE-LABlab(35.98, 56.44, -54.67)
CIE-LCHlch(35.98, 78.58, 315.91°)
OKLaboklab(47.34% 0.125 -0.1552)
OKLCHoklch(47.34% 0.199 308.8)
XYZxyz(16.7786, 8.9973, 40.8890)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2AAE #5CAE2A
analogous
#3A2AAE #7C2AAE #AE2A9E
triadic
#7C2AAE #AE7C2A #2AAE7C
tetradic
#7C2AAE #AE3A2A #5CAE2A #2A9EAE
square
#7C2AAE #AE3A2A #5CAE2A #2A9EAE
split-complementary
#7C2AAE #9EAE2A #2AAE3A
monochromatic
#36124B #591E7D #7C2AAE #9C43D2 #B675DE

Accessibility & contrast

On white

7.50
#7C2AAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7C2AAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2AAE
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2AAE#FFFFFF#000000##FFFFFF
##7C2AAE1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#0056AB
Tritanopia (blue-blind)
#744A6B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c2aae;
/* rgb */ color: rgb(124, 42, 174);
/* oklch */ color: oklch(47.3% 0.199 308.8);
Tailwind
colors: {
  custom: {
    50: '#a76cc7',
    500: '#7c2aae',
    950: '#000000',
  },
}
SCSS
$custom: #7c2aae;
$custom-light: #a76cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2aae",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 174
  },
  "hsl": {
    "h": 277.273,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47344,
    "c": 0.19922,
    "h": 308.8
  },
  "luminance": 0.08997
}

Semantic roles & 50–950 ramp

primary
#7C2AAE
secondary
#8FC56F
accent
#E44480
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C2AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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