#7A2CC1#7A2CC1

#7A2CC1 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.8% C 0.215 H 302.7°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#7A2CC1
RGBrgb(122, 44, 193)
HSLhsl(271, 63%, 46%)
HSVhsv(271, 77%, 76%)
CMYKcmyk(36.8%, 77.2%, 0%, 24.3%)
CIE-LABlab(37.46, 59.59, -63.51)
CIE-LCHlch(37.46, 87.09, 313.18°)
OKLaboklab(48.79% 0.1162 -0.1812)
OKLCHoklch(48.79% 0.215 302.7)
XYZxyz(18.5501, 9.7892, 51.3540)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CC1 #73C12C
analogous
#2F2CC1 #7A2CC1 #C12CBE
triadic
#7A2CC1 #C17A2C #2CC17A
tetradic
#7A2CC1 #C12F2C #73C12C #2CBEC1
square
#7A2CC1 #C12F2C #73C12C #2CBEC1
split-complementary
#7A2CC1 #BEC12C #2CC12F
monochromatic
#3B155D #5A218F #7A2CC1 #9853D8 #B684E3

Accessibility & contrast

On white

7.10
#7A2CC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7A2CC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2CC1
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2CC1#FFFFFF#000000##FFFFFF
##7A2CC11.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C5
Deuteranopia (green-blind)
#0058BE
Tritanopia (blue-blind)
#6B5376
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7a2cc1;
/* rgb */ color: rgb(122, 44, 193);
/* oklch */ color: oklch(48.8% 0.215 302.7);
Tailwind
colors: {
  custom: {
    50: '#a76ed5',
    500: '#7a2cc1',
    950: '#000000',
  },
}
SCSS
$custom: #7a2cc1;
$custom-light: #a76ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2cc1",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 193
  },
  "hsl": {
    "h": 271.409,
    "s": 62.869,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48791,
    "c": 0.21523,
    "h": 302.7
  },
  "luminance": 0.09789
}

Semantic roles & 50–950 ramp

primary
#7A2CC1
secondary
#A3CC7D
accent
#E64290
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7A2CC1

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

Preview Lab → · Contrast checker → · Palette generator →

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