#7F22AC#7F22AC

#7F22AC is a mid, highly saturated purple. Relative luminance 0.086; OKLCH L 46.9% C 0.206 H 311.3°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7F22AC
RGBrgb(127, 34, 172)
HSLhsl(280, 67%, 40%)
HSVhsv(280, 80%, 67%)
CMYKcmyk(26.2%, 80.2%, 0%, 32.5%)
CIE-LABlab(35.27, 59.43, -54.61)
CIE-LCHlch(35.27, 80.71, 317.42°)
OKLaboklab(46.89% 0.1362 -0.1548)
OKLCHoklch(46.89% 0.206 311.3)
XYZxyz(16.7694, 8.6351, 39.8051)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F22AC #4FAC22
analogous
#3A22AC #7F22AC #AC2294
triadic
#7F22AC #AC7F22 #22AC7F
tetradic
#7F22AC #AC3A22 #4FAC22 #2294AC
square
#7F22AC #AC3A22 #4FAC22 #2294AC
split-complementary
#7F22AC #94AC22 #22AC3A
monochromatic
#340E46 #591879 #7F22AC #A234D7 #B967E1

Accessibility & contrast

On white

7.70
#7F22AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7F22AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F22AC
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F22AC#FFFFFF#000000##FFFFFF
##7F22AC1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#0055A9
Tritanopia (blue-blind)
#794568
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f22ac;
/* rgb */ color: rgb(127, 34, 172);
/* oklch */ color: oklch(46.9% 0.206 311.3);
Tailwind
colors: {
  custom: {
    50: '#a969c6',
    500: '#7f22ac',
    950: '#000000',
  },
}
SCSS
$custom: #7f22ac;
$custom-light: #a969c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f22ac",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 172
  },
  "hsl": {
    "h": 280.435,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46891,
    "c": 0.20621,
    "h": 311.3
  },
  "luminance": 0.08635
}

Semantic roles & 50–950 ramp

primary
#7F22AC
secondary
#84C763
accent
#EA3E76
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F22AC

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

Preview Lab → · Contrast checker → · Palette generator →

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