#7F20A8#7F20A8

#7F20A8 is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.4% C 0.204 H 312.7°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7F20A8
RGBrgb(127, 32, 168)
HSLhsl(282, 68%, 39%)
HSVhsv(282, 81%, 66%)
CMYKcmyk(24.4%, 81%, 0%, 34.1%)
CIE-LABlab(34.75, 59.26, -53.06)
CIE-LCHlch(34.75, 79.54, 318.16°)
OKLaboklab(46.43% 0.1387 -0.1502)
OKLCHoklch(46.43% 0.204 312.7)
XYZxyz(16.3355, 8.3727, 37.7938)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F20A8 #49A820
analogous
#3B20A8 #7F20A8 #A8208D
triadic
#7F20A8 #A87F20 #20A87F
tetradic
#7F20A8 #A83B20 #49A820 #208DA8
square
#7F20A8 #A83B20 #49A820 #208DA8
split-complementary
#7F20A8 #8DA820 #20A83B
monochromatic
#310C41 #581675 #7F20A8 #A42ED7 #BB61E1

Accessibility & contrast

On white

7.85
#7F20A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7F20A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F20A8
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F20A8#FFFFFF#000000##FFFFFF
##7F20A81.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#0454A5
Tritanopia (blue-blind)
#7A4265
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f20a8;
/* rgb */ color: rgb(127, 32, 168);
/* oklch */ color: oklch(46.4% 0.204 312.7);
Tailwind
colors: {
  custom: {
    50: '#a968c3',
    500: '#7f20a8',
    950: '#000000',
  },
}
SCSS
$custom: #7f20a8;
$custom-light: #a968c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f20a8",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 281.912,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46429,
    "c": 0.20446,
    "h": 312.7
  },
  "luminance": 0.08372
}

Semantic roles & 50–950 ramp

primary
#7F20A8
secondary
#7DC65E
accent
#EB3D71
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F20A8

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

Preview Lab → · Contrast checker → · Palette generator →

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