#7B2AA4#7B2AA4

#7B2AA4 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.5% C 0.189 H 311.5°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7B2AA4
RGBrgb(123, 42, 164)
HSLhsl(280, 59%, 40%)
HSVhsv(280, 74%, 64%)
CMYKcmyk(25%, 74.4%, 0%, 35.7%)
CIE-LABlab(35.10, 54.07, -50.12)
CIE-LCHlch(35.10, 73.72, 317.17°)
OKLaboklab(46.46% 0.1254 -0.1418)
OKLCHoklch(46.46% 0.189 311.5)
XYZxyz(15.6959, 8.5476, 35.9378)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2AA4 #53A42A
analogous
#3E2AA4 #7B2AA4 #A42A90
triadic
#7B2AA4 #A47B2A #2AA47B
tetradic
#7B2AA4 #A43E2A #53A42A #2A90A4
square
#7B2AA4 #A43E2A #53A42A #2A90A4
split-complementary
#7B2AA4 #90A42A #2AA43E
monochromatic
#321143 #561E73 #7B2AA4 #9D3ECD #B66EDA

Accessibility & contrast

On white

7.75
#7B2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7B2AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2AA4
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2AA4#FFFFFF#000000##FFFFFF
##7B2AA41.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#1654A1
Tritanopia (blue-blind)
#764665
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b2aa4;
/* rgb */ color: rgb(123, 42, 164);
/* oklch */ color: oklch(46.5% 0.189 311.5);
Tailwind
colors: {
  custom: {
    50: '#a56cc0',
    500: '#7b2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #7b2aa4;
$custom-light: #a56cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2aa4",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 279.836,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4646,
    "c": 0.18929,
    "h": 311.5
  },
  "luminance": 0.08547
}

Semantic roles & 50–950 ramp

primary
#7B2AA4
secondary
#86C169
accent
#E2457A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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