#7B2AA3#7B2AA3

#7B2AA3 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.188 H 311.8°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7B2AA3
RGBrgb(123, 42, 163)
HSLhsl(280, 59%, 40%)
HSVhsv(280, 74%, 64%)
CMYKcmyk(24.5%, 74.2%, 0%, 36.1%)
CIE-LABlab(35.03, 53.85, -49.63)
CIE-LCHlch(35.03, 73.23, 317.34°)
OKLaboklab(46.39% 0.1255 -0.1404)
OKLCHoklch(46.39% 0.188 311.8)
XYZxyz(15.6060, 8.5116, 35.4640)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2AA3 #52A32A
analogous
#3E2AA3 #7B2AA3 #A32A8F
triadic
#7B2AA3 #A37B2A #2AA37B
tetradic
#7B2AA3 #A33E2A #52A32A #2A8FA3
square
#7B2AA3 #A33E2A #52A32A #2A8FA3
split-complementary
#7B2AA3 #8FA32A #2AA33E
monochromatic
#321142 #561D72 #7B2AA3 #9D3DCD #B66EDA

Accessibility & contrast

On white

7.77
#7B2AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2AA3
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2AA3#FFFFFF#000000##FFFFFF
##7B2AA31.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#1854A0
Tritanopia (blue-blind)
#764564
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b2aa3;
/* rgb */ color: rgb(123, 42, 163);
/* oklch */ color: oklch(46.4% 0.188 311.8);
Tailwind
colors: {
  custom: {
    50: '#a56cbf',
    500: '#7b2aa3',
    950: '#000000',
  },
}
SCSS
$custom: #7b2aa3;
$custom-light: #a56cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2aa3",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 280.165,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46386,
    "c": 0.18832,
    "h": 311.8
  },
  "luminance": 0.08511
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B2AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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