#7C2CAC#7C2CAC

#7C2CAC is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.4% C 0.195 H 309.3°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#7C2CAC
RGBrgb(124, 44, 172)
HSLhsl(278, 59%, 42%)
HSVhsv(278, 74%, 67%)
CMYKcmyk(27.9%, 74.4%, 0%, 32.5%)
CIE-LABlab(36.11, 55.20, -53.27)
CIE-LCHlch(36.11, 76.71, 316.02°)
OKLaboklab(47.39% 0.1235 -0.151)
OKLCHoklch(47.39% 0.195 309.3)
XYZxyz(16.6578, 9.0653, 39.8940)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2CAC #5CAC2C
analogous
#3C2CAC #7C2CAC #AC2C9C
triadic
#7C2CAC #AC7C2C #2CAC7C
tetradic
#7C2CAC #AC3C2C #5CAC2C #2C9CAC
square
#7C2CAC #AC3C2C #5CAC2C #2C9CAC
split-complementary
#7C2CAC #9CAC2C #2CAC3C
monochromatic
#36134B #59207B #7C2CAC #9C46D0 #B676DC

Accessibility & contrast

On white

7.47
#7C2CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7C2CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2CAC
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2CAC#FFFFFF#000000##FFFFFF
##7C2CAC1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#0556A9
Tritanopia (blue-blind)
#754A6A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c2cac;
/* rgb */ color: rgb(124, 44, 172);
/* oklch */ color: oklch(47.4% 0.195 309.3);
Tailwind
colors: {
  custom: {
    50: '#a76dc6',
    500: '#7c2cac',
    950: '#000000',
  },
}
SCSS
$custom: #7c2cac;
$custom-light: #a76dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2cac",
  "rgb": {
    "r": 124,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 277.5,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4739,
    "c": 0.19508,
    "h": 309.3
  },
  "luminance": 0.09065
}

Semantic roles & 50–950 ramp

primary
#7C2CAC
secondary
#8FC470
accent
#E24580
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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