#7A2CA5#7A2CA5

#7A2CA5 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.6% C 0.188 H 310.5°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#7A2CA5
RGBrgb(122, 44, 165)
HSLhsl(279, 58%, 41%)
HSVhsv(279, 73%, 65%)
CMYKcmyk(26.1%, 73.3%, 0%, 35.3%)
CIE-LABlab(35.31, 53.26, -50.38)
CIE-LCHlch(35.31, 73.31, 316.59°)
OKLaboklab(46.61% 0.1219 -0.1426)
OKLCHoklch(46.61% 0.188 310.5)
XYZxyz(15.7169, 8.6559, 36.4328)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CA5 #57A52C
analogous
#3D2CA5 #7A2CA5 #A52C93
triadic
#7A2CA5 #A57A2C #2CA57A
tetradic
#7A2CA5 #A53D2C #57A52C #2C93A5
square
#7A2CA5 #A53D2C #57A52C #2C93A5
split-complementary
#7A2CA5 #93A52C #2CA53D
monochromatic
#331244 #561F75 #7A2CA5 #9B42CD #B572D9

Accessibility & contrast

On white

7.69
#7A2CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7A2CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2CA5
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2CA5#FFFFFF#000000##FFFFFF
##7A2CA51.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#1554A2
Tritanopia (blue-blind)
#744766
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2ca5;
/* rgb */ color: rgb(122, 44, 165);
/* oklch */ color: oklch(46.6% 0.188 310.5);
Tailwind
colors: {
  custom: {
    50: '#a56dc0',
    500: '#7a2ca5',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ca5;
$custom-light: #a56dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ca5",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 278.678,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46605,
    "c": 0.18762,
    "h": 310.5
  },
  "luminance": 0.08656
}

Semantic roles & 50–950 ramp

primary
#7A2CA5
secondary
#8AC16C
accent
#E1477E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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