#7B1AA7#7B1AA7

#7B1AA7 is a mid, highly saturated purple. Relative luminance 0.077; OKLCH L 45.4% C 0.207 H 311.7°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#7B1AA7
RGBrgb(123, 26, 167)
HSLhsl(281, 73%, 38%)
HSVhsv(281, 84%, 65%)
CMYKcmyk(26.3%, 84.4%, 0%, 34.5%)
CIE-LABlab(33.44, 60.15, -54.62)
CIE-LCHlch(33.44, 81.25, 317.76°)
OKLaboklab(45.36% 0.1379 -0.1549)
OKLCHoklch(45.36% 0.207 311.7)
XYZxyz(15.5115, 7.7402, 37.2286)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1AA7 #46A71A
analogous
#351AA7 #7B1AA7 #A71A8C
triadic
#7B1AA7 #A77B1A #1AA77B
tetradic
#7B1AA7 #A7351A #46A71A #1A8CA7
square
#7B1AA7 #A7351A #46A71A #1A8CA7
split-complementary
#7B1AA7 #8CA71A #1AA735
monochromatic
#2D0A3D #541272 #7B1AA7 #A222DC #B857E5

Accessibility & contrast

On white

8.24
#7B1AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7B1AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1AA7
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1AA7#FFFFFF#000000##FFFFFF
##7B1AA71.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0050A4
Tritanopia (blue-blind)
#754063
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b1aa7;
/* rgb */ color: rgb(123, 26, 167);
/* oklch */ color: oklch(45.4% 0.207 311.7);
Tailwind
colors: {
  custom: {
    50: '#a665c2',
    500: '#7b1aa7',
    950: '#000000',
  },
}
SCSS
$custom: #7b1aa7;
$custom-light: #a665c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1aa7",
  "rgb": {
    "r": 123,
    "g": 26,
    "b": 167
  },
  "hsl": {
    "h": 281.277,
    "s": 73.057,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45364,
    "c": 0.20738,
    "h": 311.7
  },
  "luminance": 0.0774
}

Semantic roles & 50–950 ramp

primary
#7B1AA7
secondary
#79C855
accent
#F03871
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7B1AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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