#7F20A9#7F20A9

#7F20A9 is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.5% C 0.205 H 312.4°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7F20A9
RGBrgb(127, 32, 169)
HSLhsl(282, 68%, 39%)
HSVhsv(282, 81%, 66%)
CMYKcmyk(24.9%, 81.1%, 0%, 33.7%)
CIE-LABlab(34.82, 59.46, -53.54)
CIE-LCHlch(34.82, 80.01, 318.00°)
OKLaboklab(46.51% 0.1385 -0.1516)
OKLCHoklch(46.51% 0.205 312.4)
XYZxyz(16.4290, 8.4101, 38.2863)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F20A9 #4AA920
analogous
#3B20A9 #7F20A9 #A9208F
triadic
#7F20A9 #A97F20 #20A97F
tetradic
#7F20A9 #A93B20 #4AA920 #208FA9
square
#7F20A9 #A93B20 #4AA920 #208FA9
split-complementary
#7F20A9 #8FA920 #20A93B
monochromatic
#320D42 #581676 #7F20A9 #A42FD8 #BA62E1

Accessibility & contrast

On white

7.83
#7F20A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7F20A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F20A9
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F20A9#FFFFFF#000000##FFFFFF
##7F20A91.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#0054A6
Tritanopia (blue-blind)
#7A4366
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f20a9;
/* rgb */ color: rgb(127, 32, 169);
/* oklch */ color: oklch(46.5% 0.205 312.4);
Tailwind
colors: {
  custom: {
    50: '#a968c3',
    500: '#7f20a9',
    950: '#000000',
  },
}
SCSS
$custom: #7f20a9;
$custom-light: #a968c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f20a9",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 169
  },
  "hsl": {
    "h": 281.606,
    "s": 68.159,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46506,
    "c": 0.20534,
    "h": 312.4
  },
  "luminance": 0.0841
}

Semantic roles & 50–950 ramp

primary
#7F20A9
secondary
#7EC65F
accent
#EB3D72
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F20A9

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

Preview Lab → · Contrast checker → · Palette generator →

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