#7B20A3#7B20A3

#7B20A3 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.199 H 312.6°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7B20A3
RGBrgb(123, 32, 163)
HSLhsl(282, 67%, 38%)
HSVhsv(282, 80%, 64%)
CMYKcmyk(24.5%, 80.4%, 0%, 36.1%)
CIE-LABlab(33.75, 57.52, -51.70)
CIE-LCHlch(33.75, 77.34, 318.05°)
OKLaboklab(45.49% 0.1345 -0.1464)
OKLCHoklch(45.49% 0.199 312.6)
XYZxyz(15.2945, 7.8888, 35.3602)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B20A3 #48A320
analogous
#3920A3 #7B20A3 #A32089
triadic
#7B20A3 #A37B20 #20A37B
tetradic
#7B20A3 #A33920 #48A320 #2089A3
square
#7B20A3 #A33920 #48A320 #2089A3
split-complementary
#7B20A3 #89A320 #20A339
monochromatic
#2E0C3D #541670 #7B20A3 #A12BD5 #B85EDF

Accessibility & contrast

On white

8.15
#7B20A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7B20A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B20A3
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B20A3#FFFFFF#000000##FFFFFF
##7B20A31.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#0651A0
Tritanopia (blue-blind)
#764062
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b20a3;
/* rgb */ color: rgb(123, 32, 163);
/* oklch */ color: oklch(45.5% 0.199 312.6);
Tailwind
colors: {
  custom: {
    50: '#a667bf',
    500: '#7b20a3',
    950: '#000000',
  },
}
SCSS
$custom: #7b20a3;
$custom-light: #a667bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b20a3",
  "rgb": {
    "r": 123,
    "g": 32,
    "b": 163
  },
  "hsl": {
    "h": 281.679,
    "s": 67.179,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45487,
    "c": 0.19876,
    "h": 312.6
  },
  "luminance": 0.07888
}

Semantic roles & 50–950 ramp

primary
#7B20A3
secondary
#7BC45B
accent
#EA3E72
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B20A3

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

Preview Lab → · Contrast checker → · Palette generator →

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