#7B20AC#7B20AC

#7B20AC is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.2% C 0.207 H 309.8°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7B20AC
RGBrgb(123, 32, 172)
HSLhsl(279, 69%, 40%)
HSVhsv(279, 81%, 67%)
CMYKcmyk(28.5%, 81.4%, 0%, 32.5%)
CIE-LABlab(34.44, 59.40, -55.98)
CIE-LCHlch(34.44, 81.62, 316.70°)
OKLaboklab(46.19% 0.1324 -0.159)
OKLCHoklch(46.19% 0.207 309.8)
XYZxyz(16.1298, 8.2229, 39.7592)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B20AC #51AC20
analogous
#3520AC #7B20AC #AC2097
triadic
#7B20AC #AC7B20 #20AC7B
tetradic
#7B20AC #AC3520 #51AC20 #2097AC
square
#7B20AC #AC3520 #51AC20 #2097AC
split-complementary
#7B20AC #97AC20 #20AC35
monochromatic
#310D45 #561678 #7B20AC #9E31D9 #B664E2

Accessibility & contrast

On white

7.94
#7B20AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7B20AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B20AC
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B20AC#FFFFFF#000000##FFFFFF
##7B20AC1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0052A9
Tritanopia (blue-blind)
#744567
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b20ac;
/* rgb */ color: rgb(123, 32, 172);
/* oklch */ color: oklch(46.2% 0.207 309.8);
Tailwind
colors: {
  custom: {
    50: '#a668c6',
    500: '#7b20ac',
    950: '#000000',
  },
}
SCSS
$custom: #7b20ac;
$custom-light: #a668c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b20ac",
  "rgb": {
    "r": 123,
    "g": 32,
    "b": 172
  },
  "hsl": {
    "h": 279,
    "s": 68.627,
    "l": 40
  },
  "oklch": {
    "l": 0.46188,
    "c": 0.20687,
    "h": 309.8
  },
  "luminance": 0.08223
}

Semantic roles & 50–950 ramp

primary
#7B20AC
secondary
#84C760
accent
#EB3C7A
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B20AC

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

Preview Lab → · Contrast checker → · Palette generator →

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