#7A2DC0#7A2DC0

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

Color values

HEX#7A2DC0
RGBrgb(122, 45, 192)
HSLhsl(271, 62%, 46%)
HSVhsv(271, 77%, 75%)
CMYKcmyk(36.5%, 76.6%, 0%, 24.7%)
CIE-LABlab(37.52, 58.96, -62.83)
CIE-LCHlch(37.52, 86.16, 313.18°)
OKLaboklab(48.81% 0.1156 -0.1792)
OKLCHoklch(48.81% 0.213 302.8)
XYZxyz(18.4766, 9.8201, 50.7810)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2DC0 #73C02D
analogous
#312DC0 #7A2DC0 #C02DBD
triadic
#7A2DC0 #C07A2D #2DC07A
tetradic
#7A2DC0 #C0312D #73C02D #2DBDC0
square
#7A2DC0 #C0312D #73C02D #2DBDC0
split-complementary
#7A2DC0 #BDC02D #2DC031
monochromatic
#3B165D #5A218E #7A2DC0 #9853D7 #B685E2

Accessibility & contrast

On white

7.09
#7A2DC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2DC0
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2DC0#FFFFFF#000000##FFFFFF
##7A2DC01.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C4
Deuteranopia (green-blind)
#0058BD
Tritanopia (blue-blind)
#6B5375
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7a2dc0;
/* rgb */ color: rgb(122, 45, 192);
/* oklch */ color: oklch(48.8% 0.213 302.8);
Tailwind
colors: {
  custom: {
    50: '#a76ed4',
    500: '#7a2dc0',
    950: '#000000',
  },
}
SCSS
$custom: #7a2dc0;
$custom-light: #a76ed4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2dc0",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 192
  },
  "hsl": {
    "h": 271.429,
    "s": 62.025,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48805,
    "c": 0.21324,
    "h": 302.8
  },
  "luminance": 0.0982
}

Semantic roles & 50–950 ramp

primary
#7A2DC0
secondary
#A3CC7D
accent
#E54390
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7A2DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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