#7B2AA2#7B2AA2

#7B2AA2 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.3% C 0.187 H 312.1°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7B2AA2
RGBrgb(123, 42, 162)
HSLhsl(281, 59%, 40%)
HSVhsv(281, 74%, 64%)
CMYKcmyk(24.1%, 74.1%, 0%, 36.5%)
CIE-LABlab(34.95, 53.64, -49.14)
CIE-LCHlch(34.95, 72.74, 317.50°)
OKLaboklab(46.31% 0.1257 -0.1389)
OKLCHoklch(46.31% 0.187 312.1)
XYZxyz(15.5167, 8.4759, 34.9940)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2AA2 #51A22A
analogous
#3F2AA2 #7B2AA2 #A22A8D
triadic
#7B2AA2 #A27B2A #2AA27B
tetradic
#7B2AA2 #A23F2A #51A22A #2A8DA2
square
#7B2AA2 #A23F2A #51A22A #2A8DA2
split-complementary
#7B2AA2 #8DA22A #2AA23F
monochromatic
#311141 #561D71 #7B2AA2 #9E3DCD #B66DD9

Accessibility & contrast

On white

7.79
#7B2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7B2AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2AA2
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2AA2#FFFFFF#000000##FFFFFF
##7B2AA21.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#1A549F
Tritanopia (blue-blind)
#764564
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b2aa2;
/* rgb */ color: rgb(123, 42, 162);
/* oklch */ color: oklch(46.3% 0.187 312.1);
Tailwind
colors: {
  custom: {
    50: '#a56cbe',
    500: '#7b2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #7b2aa2;
$custom-light: #a56cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2aa2",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 280.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.46313,
    "c": 0.18736,
    "h": 312.1
  },
  "luminance": 0.08476
}

Semantic roles & 50–950 ramp

primary
#7B2AA2
secondary
#84C068
accent
#E24679
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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