#7C2AAB#7C2AAB

#7C2AAB is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.1% C 0.196 H 309.7°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7C2AAB
RGBrgb(124, 42, 171)
HSLhsl(278, 61%, 42%)
HSVhsv(278, 75%, 67%)
CMYKcmyk(27.5%, 75.4%, 0%, 32.9%)
CIE-LABlab(35.76, 55.78, -53.25)
CIE-LCHlch(35.76, 77.11, 316.33°)
OKLaboklab(47.12% 0.1255 -0.151)
OKLCHoklch(47.12% 0.196 309.7)
XYZxyz(16.4894, 8.8816, 39.3659)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2AAB #59AB2A
analogous
#3C2AAB #7C2AAB #AB2A99
triadic
#7C2AAB #AB7C2A #2AAB7C
tetradic
#7C2AAB #AB3C2A #59AB2A #2A99AB
square
#7C2AAB #AB3C2A #59AB2A #2A99AB
split-complementary
#7C2AAB #99AB2A #2AAB3C
monochromatic
#351249 #581E7A #7C2AAB #9C42D1 #B673DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C2AAB#FFFFFF#000000##FFFFFF
##7C2AAB1.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)
#0051AF
Deuteranopia (green-blind)
#0455A8
Tritanopia (blue-blind)
#754969
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c2aab;
/* rgb */ color: rgb(124, 42, 171);
/* oklch */ color: oklch(47.1% 0.196 309.7);
Tailwind
colors: {
  custom: {
    50: '#a76cc5',
    500: '#7c2aab',
    950: '#000000',
  },
}
SCSS
$custom: #7c2aab;
$custom-light: #a76cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2aab",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 278.14,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47116,
    "c": 0.19633,
    "h": 309.7
  },
  "luminance": 0.08881
}

Semantic roles & 50–950 ramp

primary
#7C2AAB
secondary
#8DC46D
accent
#E4447E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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