#7F20A4#7F20A4

#7F20A4 is a mid, highly saturated purple. Relative luminance 0.082; OKLCH L 46.1% C 0.201 H 314.0°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7F20A4
RGBrgb(127, 32, 164)
HSLhsl(283, 67%, 38%)
HSVhsv(283, 80%, 64%)
CMYKcmyk(22.6%, 80.5%, 0%, 35.7%)
CIE-LABlab(34.45, 58.44, -51.14)
CIE-LCHlch(34.45, 77.66, 318.81°)
OKLaboklab(46.13% 0.1395 -0.1446)
OKLCHoklch(46.13% 0.201 314)
XYZxyz(15.9686, 8.2259, 35.8614)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F20A4 #45A420
analogous
#3D20A4 #7F20A4 #A42087
triadic
#7F20A4 #A47F20 #20A47F
tetradic
#7F20A4 #A43D20 #45A420 #2087A4
square
#7F20A4 #A43D20 #45A420 #2087A4
split-complementary
#7F20A4 #87A420 #20A43D
monochromatic
#300C3E #571671 #7F20A4 #A62BD6 #BC5FE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F20A4#FFFFFF#000000##FFFFFF
##7F20A41.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#1153A1
Tritanopia (blue-blind)
#7B4063
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f20a4;
/* rgb */ color: rgb(127, 32, 164);
/* oklch */ color: oklch(46.1% 0.201 314.0);
Tailwind
colors: {
  custom: {
    50: '#a968c0',
    500: '#7f20a4',
    950: '#000000',
  },
}
SCSS
$custom: #7f20a4;
$custom-light: #a968c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f20a4",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 164
  },
  "hsl": {
    "h": 283.182,
    "s": 67.347,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46126,
    "c": 0.20093,
    "h": 314
  },
  "luminance": 0.08225
}

Semantic roles & 50–950 ramp

primary
#7F20A4
secondary
#79C45C
accent
#EA3E6E
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F20A4

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

Preview Lab → · Contrast checker → · Palette generator →

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