#7F21AA#7F21AA

#7F21AA is a mid, highly saturated purple. Relative luminance 0.085; OKLCH L 46.7% C 0.205 H 312.0°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#7F21AA
RGBrgb(127, 33, 170)
HSLhsl(281, 67%, 40%)
HSVhsv(281, 81%, 67%)
CMYKcmyk(25.3%, 80.6%, 0%, 33.3%)
CIE-LABlab(35.01, 59.35, -53.84)
CIE-LCHlch(35.01, 80.13, 317.79°)
OKLaboklab(46.66% 0.1375 -0.1525)
OKLCHoklch(46.66% 0.205 312)
XYZxyz(16.5506, 8.5025, 38.7917)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F21AA #4CAA21
analogous
#3B21AA #7F21AA #AA2191
triadic
#7F21AA #AA7F21 #21AA7F
tetradic
#7F21AA #AA3B21 #4CAA21 #2191AA
square
#7F21AA #AA3B21 #4CAA21 #2191AA
split-complementary
#7F21AA #91AA21 #21AA3B
monochromatic
#320D43 #591777 #7F21AA #A331D7 #BA64E1

Accessibility & contrast

On white

7.78
#7F21AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7F21AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F21AA
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F21AA#FFFFFF#000000##FFFFFF
##7F21AA1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f21aa;
/* rgb */ color: rgb(127, 33, 170);
/* oklch */ color: oklch(46.7% 0.205 312.0);
Tailwind
colors: {
  custom: {
    50: '#a969c4',
    500: '#7f21aa',
    950: '#000000',
  },
}
SCSS
$custom: #7f21aa;
$custom-light: #a969c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f21aa",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 281.168,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46659,
    "c": 0.20534,
    "h": 312
  },
  "luminance": 0.08502
}

Semantic roles & 50–950 ramp

primary
#7F21AA
secondary
#80C661
accent
#EA3D74
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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