#7F22A4#7F22A4

#7F22A4 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.3% C 0.199 H 313.8°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7F22A4
RGBrgb(127, 34, 164)
HSLhsl(283, 66%, 39%)
HSVhsv(283, 79%, 64%)
CMYKcmyk(22.6%, 79.3%, 0%, 35.7%)
CIE-LABlab(34.68, 57.79, -50.77)
CIE-LCHlch(34.68, 76.92, 318.70°)
OKLaboklab(46.29% 0.1379 -0.1435)
OKLCHoklch(46.29% 0.199 313.8)
XYZxyz(16.0241, 8.3370, 35.8799)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F22A4 #47A422
analogous
#3E22A4 #7F22A4 #A42288
triadic
#7F22A4 #A47F22 #22A47F
tetradic
#7F22A4 #A43E22 #47A422 #2288A4
square
#7F22A4 #A43E22 #47A422 #2288A4
split-complementary
#7F22A4 #88A422 #22A43E
monochromatic
#300D3F #581771 #7F22A4 #A52FD4 #BB62DE

Accessibility & contrast

On white

7.87
#7F22A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F22A4
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F22A4#FFFFFF#000000##FFFFFF
##7F22A41.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA7
Deuteranopia (green-blind)
#1454A1
Tritanopia (blue-blind)
#7B4163
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f22a4;
/* rgb */ color: rgb(127, 34, 164);
/* oklch */ color: oklch(46.3% 0.199 313.8);
Tailwind
colors: {
  custom: {
    50: '#a969c0',
    500: '#7f22a4',
    950: '#000000',
  },
}
SCSS
$custom: #7f22a4;
$custom-light: #a969c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f22a4",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 164
  },
  "hsl": {
    "h": 282.923,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46285,
    "c": 0.19904,
    "h": 313.8
  },
  "luminance": 0.08336
}

Semantic roles & 50–950 ramp

primary
#7F22A4
secondary
#7BC45E
accent
#E93F6F
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F22A4

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

Preview Lab → · Contrast checker → · Palette generator →

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