#7B1AB4#7B1AB4

#7B1AB4 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.4% C 0.219 H 307.8°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#7B1AB4
RGBrgb(123, 26, 180)
HSLhsl(278, 75%, 40%)
HSVhsv(278, 86%, 71%)
CMYKcmyk(31.7%, 85.6%, 0%, 29.4%)
CIE-LABlab(34.49, 62.84, -60.68)
CIE-LCHlch(34.49, 87.35, 316.00°)
OKLaboklab(46.42% 0.1342 -0.1727)
OKLCHoklch(46.42% 0.219 307.8)
XYZxyz(16.7742, 8.2453, 43.8790)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1AB4 #53B41A
analogous
#2E1AB4 #7B1AB4 #B41AA0
triadic
#7B1AB4 #B47B1A #1AB47B
tetradic
#7B1AB4 #B42E1A #53B41A #1AA0B4
square
#7B1AB4 #B42E1A #53B41A #1AA0B4
split-complementary
#7B1AB4 #A0B41A #1AB42E
monochromatic
#320B49 #56127F #7B1AB4 #9D2BE0 #B660E8

Accessibility & contrast

On white

7.93
#7B1AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7B1AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1AB4
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1AB4#FFFFFF#000000##FFFFFF
##7B1AB41.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#71466B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b1ab4;
/* rgb */ color: rgb(123, 26, 180);
/* oklch */ color: oklch(46.4% 0.219 307.8);
Tailwind
colors: {
  custom: {
    50: '#a766cb',
    500: '#7b1ab4',
    950: '#000000',
  },
}
SCSS
$custom: #7b1ab4;
$custom-light: #a766cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1ab4",
  "rgb": {
    "r": 123,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 277.792,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46421,
    "c": 0.21872,
    "h": 307.8
  },
  "luminance": 0.08245
}

Semantic roles & 50–950 ramp

primary
#7B1AB4
secondary
#86CC5D
accent
#F1367C
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B1AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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