#7A2CA2#7A2CA2

#7A2CA2 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.4% C 0.185 H 311.5°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7A2CA2
RGBrgb(122, 44, 162)
HSLhsl(280, 57%, 40%)
HSVhsv(280, 73%, 64%)
CMYKcmyk(24.7%, 72.8%, 0%, 36.5%)
CIE-LABlab(35.10, 52.61, -48.92)
CIE-LCHlch(35.10, 71.83, 317.08°)
OKLaboklab(46.39% 0.1224 -0.1383)
OKLCHoklch(46.39% 0.185 311.5)
XYZxyz(15.4471, 8.5480, 35.0116)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CA2 #54A22C
analogous
#3F2CA2 #7A2CA2 #A22C8F
triadic
#7A2CA2 #A27A2C #2CA27A
tetradic
#7A2CA2 #A23F2C #54A22C #2C8FA2
square
#7A2CA2 #A23F2C #54A22C #2C8FA2
split-complementary
#7A2CA2 #8FA22C #2CA23F
monochromatic
#321242 #561F72 #7A2CA2 #9C40CB #B570D8

Accessibility & contrast

On white

7.75
#7A2CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7A2CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2CA2
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2CA2#FFFFFF#000000##FFFFFF
##7A2CA21.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#1B549F
Tritanopia (blue-blind)
#754664
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2ca2;
/* rgb */ color: rgb(122, 44, 162);
/* oklch */ color: oklch(46.4% 0.185 311.5);
Tailwind
colors: {
  custom: {
    50: '#a56dbe',
    500: '#7a2ca2',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ca2;
$custom-light: #a56dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ca2",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 279.661,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46385,
    "c": 0.18467,
    "h": 311.5
  },
  "luminance": 0.08548
}

Semantic roles & 50–950 ramp

primary
#7A2CA2
secondary
#87BF6A
accent
#E1477B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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