#7A2BAD#7A2BAD

#7A2BAD is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.1% C 0.197 H 308.2°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7A2BAD
RGBrgb(122, 43, 173)
HSLhsl(276, 60%, 42%)
HSVhsv(276, 75%, 68%)
CMYKcmyk(29.5%, 75.1%, 0%, 32.2%)
CIE-LABlab(35.76, 55.44, -54.45)
CIE-LCHlch(35.76, 77.71, 315.52°)
OKLaboklab(47.11% 0.1215 -0.1546)
OKLCHoklch(47.11% 0.197 308.2)
XYZxyz(16.4312, 8.8827, 40.3760)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2BAD #5EAD2B
analogous
#392BAD #7A2BAD #AD2B9F
triadic
#7A2BAD #AD7A2B #2BAD7A
tetradic
#7A2BAD #AD392B #5EAD2B #2B9FAD
square
#7A2BAD #AD392B #5EAD2B #2B9FAD
split-complementary
#7A2BAD #9FAD2B #2BAD39
monochromatic
#35134B #571F7C #7A2BAD #9A45D1 #B476DD

Accessibility & contrast

On white

7.56
#7A2BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2BAD
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2BAD#FFFFFF#000000##FFFFFF
##7A2BAD1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B1
Deuteranopia (green-blind)
#0055AA
Tritanopia (blue-blind)
#724A6A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2bad;
/* rgb */ color: rgb(122, 43, 173);
/* oklch */ color: oklch(47.1% 0.197 308.2);
Tailwind
colors: {
  custom: {
    50: '#a56dc6',
    500: '#7a2bad',
    950: '#000000',
  },
}
SCSS
$custom: #7a2bad;
$custom-light: #a56dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2bad",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 173
  },
  "hsl": {
    "h": 276.462,
    "s": 60.185,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47105,
    "c": 0.19661,
    "h": 308.2
  },
  "luminance": 0.08882
}

Semantic roles & 50–950 ramp

primary
#7A2BAD
secondary
#91C46F
accent
#E34483
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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