#7A2AB2#7A2AB2

#7A2AB2 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.4% C 0.203 H 306.8°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7A2AB2
RGBrgb(122, 42, 178)
HSLhsl(275, 62%, 43%)
HSVhsv(275, 76%, 70%)
CMYKcmyk(31.5%, 76.4%, 0%, 30.2%)
CIE-LABlab(36.00, 56.96, -57.03)
CIE-LCHlch(36.00, 80.60, 314.96°)
OKLaboklab(47.4% 0.1214 -0.1622)
OKLCHoklch(47.4% 0.203 306.8)
XYZxyz(16.8881, 9.0081, 42.9599)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2AB2 #62B22A
analogous
#362AB2 #7A2AB2 #B22AA6
triadic
#7A2AB2 #B27A2A #2AB27A
tetradic
#7A2AB2 #B2362A #62B22A #2AA6B2
square
#7A2AB2 #B2362A #62B22A #2AA6B2
split-complementary
#7A2AB2 #A6B22A #2AB236
monochromatic
#36134F #581E80 #7A2AB2 #9946D3 #B477DF

Accessibility & contrast

On white

7.50
#7A2AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7A2AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2AB2
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2AB2#FFFFFF#000000##FFFFFF
##7A2AB21.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#0055AF
Tritanopia (blue-blind)
#704C6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a2ab2;
/* rgb */ color: rgb(122, 42, 178);
/* oklch */ color: oklch(47.4% 0.203 306.8);
Tailwind
colors: {
  custom: {
    50: '#a66cca',
    500: '#7a2ab2',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ab2;
$custom-light: #a66cca;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ab2",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 275.294,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47395,
    "c": 0.20257,
    "h": 306.8
  },
  "luminance": 0.09008
}

Semantic roles & 50–950 ramp

primary
#7A2AB2
secondary
#94C771
accent
#E54386
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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