#7A2CA9#7A2CA9

#7A2CA9 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.9% C 0.192 H 309.3°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#7A2CA9
RGBrgb(122, 44, 169)
HSLhsl(277, 59%, 42%)
HSVhsv(277, 74%, 66%)
CMYKcmyk(27.8%, 74%, 0%, 33.7%)
CIE-LABlab(35.60, 54.14, -52.31)
CIE-LCHlch(35.60, 75.28, 315.99°)
OKLaboklab(46.9% 0.1213 -0.1483)
OKLCHoklch(46.9% 0.192 309.3)
XYZxyz(16.0867, 8.8038, 38.3803)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CA9 #5BA92C
analogous
#3C2CA9 #7A2CA9 #A92C9A
triadic
#7A2CA9 #A97A2C #2CA97A
tetradic
#7A2CA9 #A93C2C #5BA92C #2C9AA9
square
#7A2CA9 #A93C2C #5BA92C #2C9AA9
split-complementary
#7A2CA9 #9AA92C #2CA93C
monochromatic
#341348 #571F78 #7A2CA9 #9A44CE #B474DB

Accessibility & contrast

On white

7.61
#7A2CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7A2CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2CA9
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2CA9#FFFFFF#000000##FFFFFF
##7A2CA91.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0955A6
Tritanopia (blue-blind)
#734968
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2ca9;
/* rgb */ color: rgb(122, 44, 169);
/* oklch */ color: oklch(46.9% 0.192 309.3);
Tailwind
colors: {
  custom: {
    50: '#a56dc3',
    500: '#7a2ca9',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ca9;
$custom-light: #a56dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ca9",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 277.44,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46903,
    "c": 0.19156,
    "h": 309.3
  },
  "luminance": 0.08804
}

Semantic roles & 50–950 ramp

primary
#7A2CA9
secondary
#8EC36E
accent
#E24681
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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