#7A2DC7#7A2DC7

#7A2DC7 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.4% C 0.220 H 301.1°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#7A2DC7
RGBrgb(122, 45, 199)
HSLhsl(270, 63%, 48%)
HSVhsv(270, 77%, 78%)
CMYKcmyk(38.7%, 77.4%, 0%, 22%)
CIE-LABlab(38.09, 60.60, -65.99)
CIE-LCHlch(38.09, 89.59, 312.56°)
OKLaboklab(49.38% 0.1138 -0.1885)
OKLCHoklch(49.38% 0.22 301.1)
XYZxyz(19.2707, 10.1377, 54.9633)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2DC7 #7AC72D
analogous
#2D2DC7 #7A2DC7 #C72DC7
triadic
#7A2DC7 #C77A2D #2DC77A
tetradic
#7A2DC7 #C72D2D #7AC72D #2DC7C7
square
#7A2DC7 #C72D2D #7AC72D #2DC7C7
split-complementary
#7A2DC7 #C7C72D #2DC72D
monochromatic
#3D1663 #5B2295 #7A2DC7 #9958D9 #B78AE5

Accessibility & contrast

On white

6.94
#7A2DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7A2DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A2DC7
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2DC7#FFFFFF#000000##FFFFFF
##7A2DC71.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CB
Deuteranopia (green-blind)
#0059C4
Tritanopia (blue-blind)
#695679
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7a2dc7;
/* rgb */ color: rgb(122, 45, 199);
/* oklch */ color: oklch(49.4% 0.220 301.1);
Tailwind
colors: {
  custom: {
    50: '#a76fd9',
    500: '#7a2dc7',
    950: '#000000',
  },
}
SCSS
$custom: #7a2dc7;
$custom-light: #a76fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2dc7",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 199
  },
  "hsl": {
    "h": 270,
    "s": 63.115,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49382,
    "c": 0.22018,
    "h": 301.1
  },
  "luminance": 0.10138
}

Semantic roles & 50–950 ramp

primary
#7A2DC7
secondary
#A8CE81
accent
#E64294
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7A2DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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