#7A2CAC#7A2CAC

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

Color values

HEX#7A2CAC
RGBrgb(122, 44, 172)
HSLhsl(277, 59%, 42%)
HSVhsv(277, 74%, 67%)
CMYKcmyk(29.1%, 74.4%, 0%, 32.5%)
CIE-LABlab(35.83, 54.81, -53.74)
CIE-LCHlch(35.83, 76.76, 315.56°)
OKLaboklab(47.13% 0.1207 -0.1525)
OKLCHoklch(47.13% 0.195 308.4)
XYZxyz(16.3716, 8.9178, 39.8806)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CAC #5EAC2C
analogous
#3A2CAC #7A2CAC #AC2C9E
triadic
#7A2CAC #AC7A2C #2CAC7A
tetradic
#7A2CAC #AC3A2C #5EAC2C #2C9EAC
square
#7A2CAC #AC3A2C #5EAC2C #2C9EAC
split-complementary
#7A2CAC #9EAC2C #2CAC3A
monochromatic
#35134B #57207B #7A2CAC #9A46D0 #B476DC

Accessibility & contrast

On white

7.54
#7A2CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2CAC
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2CAC#FFFFFF#000000##FFFFFF
##7A2CAC1.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#0055A9
Tritanopia (blue-blind)
#724A6A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2cac;
/* rgb */ color: rgb(122, 44, 172);
/* oklch */ color: oklch(47.1% 0.195 308.4);
Tailwind
colors: {
  custom: {
    50: '#a56dc6',
    500: '#7a2cac',
    950: '#000000',
  },
}
SCSS
$custom: #7a2cac;
$custom-light: #a56dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2cac",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 276.563,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47129,
    "c": 0.19452,
    "h": 308.4
  },
  "luminance": 0.08917
}

Semantic roles & 50–950 ramp

primary
#7A2CAC
secondary
#91C470
accent
#E24583
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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