#7F22AA#7F22AA

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

Color values

HEX#7F22AA
RGBrgb(127, 34, 170)
HSLhsl(281, 67%, 40%)
HSVhsv(281, 80%, 67%)
CMYKcmyk(25.3%, 80%, 0%, 33.3%)
CIE-LABlab(35.12, 59.02, -53.66)
CIE-LCHlch(35.12, 79.76, 317.73°)
OKLaboklab(46.74% 0.1367 -0.152)
OKLCHoklch(46.74% 0.204 312)
XYZxyz(16.5788, 8.5588, 38.8011)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F22AA #4DAA22
analogous
#3B22AA #7F22AA #AA2291
triadic
#7F22AA #AA7F22 #22AA7F
tetradic
#7F22AA #AA3B22 #4DAA22 #2291AA
square
#7F22AA #AA3B22 #4DAA22 #2291AA
split-complementary
#7F22AA #91AA22 #22AA3B
monochromatic
#330E44 #591877 #7F22AA #A333D6 #BA66E0

Accessibility & contrast

On white

7.74
#7F22AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7F22AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F22AA
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F22AA#FFFFFF#000000##FFFFFF
##7F22AA1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f22aa;
/* rgb */ color: rgb(127, 34, 170);
/* oklch */ color: oklch(46.7% 0.204 312.0);
Tailwind
colors: {
  custom: {
    50: '#a969c4',
    500: '#7f22aa',
    950: '#000000',
  },
}
SCSS
$custom: #7f22aa;
$custom-light: #a969c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f22aa",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 170
  },
  "hsl": {
    "h": 281.029,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.46738,
    "c": 0.20442,
    "h": 312
  },
  "luminance": 0.08558
}

Semantic roles & 50–950 ramp

primary
#7F22AA
secondary
#82C662
accent
#EA3E74
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F22AA

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

Preview Lab → · Contrast checker → · Palette generator →

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