#7F20A2#7F20A2

#7F20A2 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.199 H 314.6°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#7F20A2
RGBrgb(127, 32, 162)
HSLhsl(284, 67%, 38%)
HSVhsv(284, 80%, 64%)
CMYKcmyk(21.6%, 80.2%, 0%, 36.5%)
CIE-LABlab(34.30, 58.04, -50.17)
CIE-LCHlch(34.30, 76.72, 319.16°)
OKLaboklab(45.98% 0.1399 -0.1417)
OKLCHoklch(45.98% 0.199 314.6)
XYZxyz(15.7894, 8.1543, 34.9176)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F20A2 #43A220
analogous
#3E20A2 #7F20A2 #A22084
triadic
#7F20A2 #A27F20 #20A27F
tetradic
#7F20A2 #A23E20 #43A220 #2084A2
square
#7F20A2 #A23E20 #43A220 #2084A2
split-complementary
#7F20A2 #84A220 #20A23E
monochromatic
#2F0C3C #57166F #7F20A2 #A72AD5 #BC5DDF

Accessibility & contrast

On white

7.98
#7F20A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7F20A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F20A2
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F20A2#FFFFFF#000000##FFFFFF
##7F20A21.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#16539F
Tritanopia (blue-blind)
#7C3F61
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f20a2;
/* rgb */ color: rgb(127, 32, 162);
/* oklch */ color: oklch(46.0% 0.199 314.6);
Tailwind
colors: {
  custom: {
    50: '#a968be',
    500: '#7f20a2',
    950: '#000000',
  },
}
SCSS
$custom: #7f20a2;
$custom-light: #a968be;
$custom-dark: #000000;
JSON
{
  "hex": "#7f20a2",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 162
  },
  "hsl": {
    "h": 283.846,
    "s": 67.01,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45977,
    "c": 0.19916,
    "h": 314.6
  },
  "luminance": 0.08154
}

Semantic roles & 50–950 ramp

primary
#7F20A2
secondary
#77C35A
accent
#EA3E6C
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F20A2

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

Preview Lab → · Contrast checker → · Palette generator →

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