#7A2AB1#7A2AB1

#7A2AB1 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.3% C 0.202 H 307.1°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7A2AB1
RGBrgb(122, 42, 177)
HSLhsl(276, 62%, 43%)
HSVhsv(276, 76%, 69%)
CMYKcmyk(31.1%, 76.3%, 0%, 30.6%)
CIE-LABlab(35.92, 56.73, -56.57)
CIE-LCHlch(35.92, 80.11, 315.08°)
OKLaboklab(47.32% 0.1216 -0.1608)
OKLCHoklch(47.32% 0.202 307.1)
XYZxyz(16.7881, 8.9680, 42.4330)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2AB1 #61B12A
analogous
#372AB1 #7A2AB1 #B12AA4
triadic
#7A2AB1 #B17A2A #2AB17A
tetradic
#7A2AB1 #B1372A #61B12A #2AA4B1
square
#7A2AB1 #B1372A #61B12A #2AA4B1
split-complementary
#7A2AB1 #A4B12A #2AB137
monochromatic
#36134E #581E80 #7A2AB1 #9945D3 #B477DF

Accessibility & contrast

On white

7.52
#7A2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7A2AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2AB1
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2AB1#FFFFFF#000000##FFFFFF
##7A2AB11.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#0055AE
Tritanopia (blue-blind)
#714B6C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2ab1;
/* rgb */ color: rgb(122, 42, 177);
/* oklch */ color: oklch(47.3% 0.202 307.1);
Tailwind
colors: {
  custom: {
    50: '#a66cc9',
    500: '#7a2ab1',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ab1;
$custom-light: #a66cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ab1",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 275.556,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47317,
    "c": 0.20159,
    "h": 307.1
  },
  "luminance": 0.08968
}

Semantic roles & 50–950 ramp

primary
#7A2AB1
secondary
#93C670
accent
#E54385
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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