#7F22A2#7F22A2

#7F22A2 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.197 H 314.5°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7F22A2
RGBrgb(127, 34, 162)
HSLhsl(284, 65%, 38%)
HSVhsv(284, 79%, 64%)
CMYKcmyk(21.6%, 79%, 0%, 36.5%)
CIE-LABlab(34.53, 57.38, -49.80)
CIE-LCHlch(34.53, 75.98, 319.05°)
OKLaboklab(46.14% 0.1383 -0.1407)
OKLCHoklch(46.14% 0.197 314.5)
XYZxyz(15.8449, 8.2653, 34.9361)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F22A2 #45A222
analogous
#3F22A2 #7F22A2 #A22285
triadic
#7F22A2 #A27F22 #22A27F
tetradic
#7F22A2 #A23F22 #45A222 #2285A2
square
#7F22A2 #A23F22 #45A222 #2285A2
split-complementary
#7F22A2 #85A222 #22A23F
monochromatic
#300D3D #57176F #7F22A2 #A62ED3 #BC61DE

Accessibility & contrast

On white

7.92
#7F22A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7F22A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F22A2
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F22A2#FFFFFF#000000##FFFFFF
##7F22A21.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#18539F
Tritanopia (blue-blind)
#7C4062
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f22a2;
/* rgb */ color: rgb(127, 34, 162);
/* oklch */ color: oklch(46.1% 0.197 314.5);
Tailwind
colors: {
  custom: {
    50: '#a869be',
    500: '#7f22a2',
    950: '#000000',
  },
}
SCSS
$custom: #7f22a2;
$custom-light: #a869be;
$custom-dark: #000000;
JSON
{
  "hex": "#7f22a2",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 283.594,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46136,
    "c": 0.19725,
    "h": 314.5
  },
  "luminance": 0.08265
}

Semantic roles & 50–950 ramp

primary
#7F22A2
secondary
#79C35D
accent
#E8406E
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F22A2

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

Preview Lab → · Contrast checker → · Palette generator →

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