#7C2AAA#7C2AAA

#7C2AAA is a mid, vivid violet. Relative luminance 0.088; OKLCH L 47.0% C 0.195 H 310.0°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#7C2AAA
RGBrgb(124, 42, 170)
HSLhsl(278, 60%, 42%)
HSVhsv(278, 75%, 67%)
CMYKcmyk(27.1%, 75.3%, 0%, 33.3%)
CIE-LABlab(35.68, 55.56, -52.77)
CIE-LCHlch(35.68, 76.63, 316.48°)
OKLaboklab(47.04% 0.1257 -0.1496)
OKLCHoklch(47.04% 0.195 310)
XYZxyz(16.3944, 8.8436, 38.8658)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2AAA #58AA2A
analogous
#3C2AAA #7C2AAA #AA2A98
triadic
#7C2AAA #AA7C2A #2AAA7C
tetradic
#7C2AAA #AA3C2A #58AA2A #2A98AA
square
#7C2AAA #AA3C2A #58AA2A #2A98AA
split-complementary
#7C2AAA #98AA2A #2AAA3C
monochromatic
#341248 #581E79 #7C2AAA #9D41D0 #B672DC

Accessibility & contrast

On white

7.59
#7C2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2AAA
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2AAA#FFFFFF#000000##FFFFFF
##7C2AAA1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#0855A7
Tritanopia (blue-blind)
#754868
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c2aaa;
/* rgb */ color: rgb(124, 42, 170);
/* oklch */ color: oklch(47.0% 0.195 310.0);
Tailwind
colors: {
  custom: {
    50: '#a66cc4',
    500: '#7c2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #7c2aaa;
$custom-light: #a66cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2aaa",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 278.438,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47041,
    "c": 0.19537,
    "h": 310
  },
  "luminance": 0.08843
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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