#7A2AB3#7A2AB3

#7A2AB3 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.5% C 0.204 H 306.5°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#7A2AB3
RGBrgb(122, 42, 179)
HSLhsl(275, 62%, 43%)
HSVhsv(275, 77%, 70%)
CMYKcmyk(31.8%, 76.5%, 0%, 29.8%)
CIE-LABlab(36.08, 57.18, -57.50)
CIE-LCHlch(36.08, 81.09, 314.84°)
OKLaboklab(47.47% 0.1212 -0.1635)
OKLCHoklch(47.47% 0.204 306.5)
XYZxyz(16.9889, 9.0484, 43.4906)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2AB3 #63B32A
analogous
#352AB3 #7A2AB3 #B32AA7
triadic
#7A2AB3 #B37A2A #2AB37A
tetradic
#7A2AB3 #B3352A #63B32A #2AA7B3
square
#7A2AB3 #B3352A #63B32A #2AA7B3
split-complementary
#7A2AB3 #A7B32A #2AB335
monochromatic
#361350 #581E81 #7A2AB3 #9946D4 #B478DF

Accessibility & contrast

On white

7.47
#7A2AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7A2AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2AB3
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2AB3#FFFFFF#000000##FFFFFF
##7A2AB31.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a2ab3;
/* rgb */ color: rgb(122, 42, 179);
/* oklch */ color: oklch(47.5% 0.204 306.5);
Tailwind
colors: {
  custom: {
    50: '#a66ccb',
    500: '#7a2ab3',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ab3;
$custom-light: #a66ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ab3",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 275.036,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47474,
    "c": 0.20354,
    "h": 306.5
  },
  "luminance": 0.09048
}

Semantic roles & 50–950 ramp

primary
#7A2AB3
secondary
#95C772
accent
#E54386
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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