#7F22A3#7F22A3

#7F22A3 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.2% C 0.198 H 314.2°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7F22A3
RGBrgb(127, 34, 163)
HSLhsl(283, 65%, 39%)
HSVhsv(283, 79%, 64%)
CMYKcmyk(22.1%, 79.1%, 0%, 36.1%)
CIE-LABlab(34.60, 57.59, -50.29)
CIE-LCHlch(34.60, 76.45, 318.87°)
OKLaboklab(46.21% 0.1381 -0.1421)
OKLCHoklch(46.21% 0.198 314.2)
XYZxyz(15.9342, 8.3010, 35.4061)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F22A3 #46A322
analogous
#3E22A3 #7F22A3 #A32286
triadic
#7F22A3 #A37F22 #22A37F
tetradic
#7F22A3 #A33E22 #46A322 #2286A3
square
#7F22A3 #A33E22 #46A322 #2286A3
split-complementary
#7F22A3 #86A322 #22A33E
monochromatic
#300D3E #581770 #7F22A3 #A62FD4 #BB61DE

Accessibility & contrast

On white

7.89
#7F22A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7F22A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F22A3
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F22A3#FFFFFF#000000##FFFFFF
##7F22A31.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA6
Deuteranopia (green-blind)
#1653A0
Tritanopia (blue-blind)
#7B4162
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f22a3;
/* rgb */ color: rgb(127, 34, 163);
/* oklch */ color: oklch(46.2% 0.198 314.2);
Tailwind
colors: {
  custom: {
    50: '#a969bf',
    500: '#7f22a3',
    950: '#000000',
  },
}
SCSS
$custom: #7f22a3;
$custom-light: #a969bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f22a3",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 163
  },
  "hsl": {
    "h": 283.256,
    "s": 65.482,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4621,
    "c": 0.19814,
    "h": 314.2
  },
  "luminance": 0.083
}

Semantic roles & 50–950 ramp

primary
#7F22A3
secondary
#7AC35E
accent
#E83F6F
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F22A3

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

Preview Lab → · Contrast checker → · Palette generator →

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