#7A2EA2#7A2EA2

#7A2EA2 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.6% C 0.182 H 311.3°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7A2EA2
RGBrgb(122, 46, 162)
HSLhsl(279, 56%, 41%)
HSVhsv(279, 72%, 64%)
CMYKcmyk(24.7%, 71.6%, 0%, 36.5%)
CIE-LABlab(35.40, 51.75, -48.43)
CIE-LCHlch(35.40, 70.88, 316.90°)
OKLaboklab(46.6% 0.1203 -0.1369)
OKLCHoklch(46.6% 0.182 311.3)
XYZxyz(15.5234, 8.7006, 35.0370)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EA2 #56A22E
analogous
#402EA2 #7A2EA2 #A22E90
triadic
#7A2EA2 #A27A2E #2EA27A
tetradic
#7A2EA2 #A2402E #56A22E #2E90A2
square
#7A2EA2 #A2402E #56A22E #2E90A2
split-complementary
#7A2EA2 #90A22E #2EA240
monochromatic
#321343 #562072 #7A2EA2 #9B43CA #B573D7

Accessibility & contrast

On white

7.66
#7A2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7A2EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2EA2
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EA2#FFFFFF#000000##FFFFFF
##7A2EA21.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#1E559F
Tritanopia (blue-blind)
#754765
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2ea2;
/* rgb */ color: rgb(122, 46, 162);
/* oklch */ color: oklch(46.6% 0.182 311.3);
Tailwind
colors: {
  custom: {
    50: '#a46ebe',
    500: '#7a2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ea2;
$custom-light: #a46ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ea2",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 279.31,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.466,
    "c": 0.18223,
    "h": 311.3
  },
  "luminance": 0.087
}

Semantic roles & 50–950 ramp

primary
#7A2EA2
secondary
#89BF6D
accent
#DF497D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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