#7A2CAD#7A2CAD

#7A2CAD is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.2% C 0.196 H 308.1°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7A2CAD
RGBrgb(122, 44, 173)
HSLhsl(276, 59%, 43%)
HSVhsv(276, 75%, 68%)
CMYKcmyk(29.5%, 74.6%, 0%, 32.2%)
CIE-LABlab(35.90, 55.04, -54.22)
CIE-LCHlch(35.90, 77.26, 315.43°)
OKLaboklab(47.21% 0.1206 -0.1539)
OKLCHoklch(47.21% 0.196 308.1)
XYZxyz(16.4680, 8.9563, 40.3883)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CAD #5FAD2C
analogous
#392CAD #7A2CAD #AD2CA0
triadic
#7A2CAD #AD7A2C #2CAD7A
tetradic
#7A2CAD #AD392C #5FAD2C #2CA0AD
square
#7A2CAD #AD392C #5FAD2C #2CA0AD
split-complementary
#7A2CAD #A0AD2C #2CAD39
monochromatic
#35134B #58207C #7A2CAD #9A46D0 #B477DC

Accessibility & contrast

On white

7.52
#7A2CAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7A2CAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2CAD
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2CAD#FFFFFF#000000##FFFFFF
##7A2CAD1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#0055AA
Tritanopia (blue-blind)
#724B6A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2cad;
/* rgb */ color: rgb(122, 44, 173);
/* oklch */ color: oklch(47.2% 0.196 308.1);
Tailwind
colors: {
  custom: {
    50: '#a56dc6',
    500: '#7a2cad',
    950: '#000000',
  },
}
SCSS
$custom: #7a2cad;
$custom-light: #a56dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2cad",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 173
  },
  "hsl": {
    "h": 276.279,
    "s": 59.447,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47205,
    "c": 0.19551,
    "h": 308.1
  },
  "luminance": 0.08956
}

Semantic roles & 50–950 ramp

primary
#7A2CAD
secondary
#92C471
accent
#E34583
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2CAD

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

Preview Lab → · Contrast checker → · Palette generator →

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