#7A2BAE#7A2BAE

#7A2BAE is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.2% C 0.198 H 307.9°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7A2BAE
RGBrgb(122, 43, 174)
HSLhsl(276, 60%, 43%)
HSVhsv(276, 75%, 68%)
CMYKcmyk(29.9%, 75.3%, 0%, 31.8%)
CIE-LABlab(35.83, 55.67, -54.92)
CIE-LCHlch(35.83, 78.20, 315.38°)
OKLaboklab(47.18% 0.1213 -0.156)
OKLCHoklch(47.18% 0.198 307.9)
XYZxyz(16.5283, 8.9216, 40.8875)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2BAE #5FAE2B
analogous
#382BAE #7A2BAE #AE2BA1
triadic
#7A2BAE #AE7A2B #2BAE7A
tetradic
#7A2BAE #AE382B #5FAE2B #2BA1AE
square
#7A2BAE #AE382B #5FAE2B #2BA1AE
split-complementary
#7A2BAE #A1AE2B #2BAE38
monochromatic
#35134C #581F7D #7A2BAE #9A45D1 #B476DD

Accessibility & contrast

On white

7.54
#7A2BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7A2BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2BAE
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2BAE#FFFFFF#000000##FFFFFF
##7A2BAE1.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#0055AB
Tritanopia (blue-blind)
#724B6B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2bae;
/* rgb */ color: rgb(122, 43, 174);
/* oklch */ color: oklch(47.2% 0.198 307.9);
Tailwind
colors: {
  custom: {
    50: '#a56dc7',
    500: '#7a2bae',
    950: '#000000',
  },
}
SCSS
$custom: #7a2bae;
$custom-light: #a56dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2bae",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 276.183,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47182,
    "c": 0.19759,
    "h": 307.9
  },
  "luminance": 0.08921
}

Semantic roles & 50–950 ramp

primary
#7A2BAE
secondary
#92C570
accent
#E44483
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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