#7A2DCA#7A2DCA

#7A2DCA is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.6% C 0.223 H 300.4°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#7A2DCA
RGBrgb(122, 45, 202)
HSLhsl(269, 64%, 48%)
HSVhsv(269, 78%, 79%)
CMYKcmyk(39.6%, 77.7%, 0%, 20.8%)
CIE-LABlab(38.34, 61.30, -67.33)
CIE-LCHlch(38.34, 91.05, 312.32°)
OKLaboklab(49.63% 0.113 -0.1924)
OKLCHoklch(49.63% 0.223 300.4)
XYZxyz(19.6224, 10.2784, 56.8158)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2DCA #7DCA2D
analogous
#2D2ECA #7A2DCA #C82DCA
triadic
#7A2DCA #CA7A2D #2DCA7A
tetradic
#7A2DCA #CA2D2E #7DCA2D #2DCAC8
square
#7A2DCA #CA2D2E #7DCA2D #2DCAC8
split-complementary
#7A2DCA #CAC82D #2ECA2D
monochromatic
#3E1766 #5C2298 #7A2DCA #995ADA #B88CE5

Accessibility & contrast

On white

6.87
#7A2DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7A2DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A2DCA
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2DCA#FFFFFF#000000##FFFFFF
##7A2DCA1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0059C7
Tritanopia (blue-blind)
#67577B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7a2dca;
/* rgb */ color: rgb(122, 45, 202);
/* oklch */ color: oklch(49.6% 0.223 300.4);
Tailwind
colors: {
  custom: {
    50: '#a86fdb',
    500: '#7a2dca',
    950: '#000000',
  },
}
SCSS
$custom: #7a2dca;
$custom-light: #a86fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2dca",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 202
  },
  "hsl": {
    "h": 269.427,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.49633,
    "c": 0.22315,
    "h": 300.4
  },
  "luminance": 0.10279
}

Semantic roles & 50–950 ramp

primary
#7A2DCA
secondary
#AACF83
accent
#E74195
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7A2DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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