#7A2BA2#7A2BA2

#7A2BA2 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.3% C 0.186 H 311.6°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7A2BA2
RGBrgb(122, 43, 162)
HSLhsl(280, 58%, 40%)
HSVhsv(280, 73%, 64%)
CMYKcmyk(24.7%, 73.5%, 0%, 36.5%)
CIE-LABlab(34.95, 53.02, -49.15)
CIE-LCHlch(34.95, 72.30, 317.17°)
OKLaboklab(46.28% 0.1234 -0.139)
OKLCHoklch(46.28% 0.186 311.6)
XYZxyz(15.4103, 8.4744, 34.9993)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2BA2 #53A22B
analogous
#3E2BA2 #7A2BA2 #A22B8E
triadic
#7A2BA2 #A27A2B #2BA27A
tetradic
#7A2BA2 #A23E2B #53A22B #2B8EA2
square
#7A2BA2 #A23E2B #53A22B #2B8EA2
split-complementary
#7A2BA2 #8EA22B #2BA23E
monochromatic
#311141 #561E72 #7A2BA2 #9C3ECC #B56FD9

Accessibility & contrast

On white

7.79
#7A2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7A2BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2BA2
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2BA2#FFFFFF#000000##FFFFFF
##7A2BA21.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#19549F
Tritanopia (blue-blind)
#754664
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a2ba2;
/* rgb */ color: rgb(122, 43, 162);
/* oklch */ color: oklch(46.3% 0.186 311.6);
Tailwind
colors: {
  custom: {
    50: '#a56cbe',
    500: '#7a2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ba2;
$custom-light: #a56cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ba2",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 279.832,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46281,
    "c": 0.18586,
    "h": 311.6
  },
  "luminance": 0.08474
}

Semantic roles & 50–950 ramp

primary
#7A2BA2
secondary
#86C069
accent
#E1477B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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