#7F22AD#7F22AD

#7F22AD is a mid, highly saturated purple. Relative luminance 0.087; OKLCH L 47.0% C 0.207 H 311.0°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#7F22AD
RGBrgb(127, 34, 173)
HSLhsl(280, 67%, 41%)
HSVhsv(280, 80%, 68%)
CMYKcmyk(26.6%, 80.3%, 0%, 32.2%)
CIE-LABlab(35.35, 59.64, -55.08)
CIE-LCHlch(35.35, 81.19, 317.28°)
OKLaboklab(46.97% 0.136 -0.1562)
OKLCHoklch(46.97% 0.207 311)
XYZxyz(16.8658, 8.6736, 40.3128)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F22AD #50AD22
analogous
#3922AD #7F22AD #AD2295
triadic
#7F22AD #AD7F22 #22AD7F
tetradic
#7F22AD #AD3922 #50AD22 #2295AD
square
#7F22AD #AD3922 #50AD22 #2295AD
split-complementary
#7F22AD #95AD22 #22AD39
monochromatic
#340E47 #59187A #7F22AD #A235D7 #B968E1

Accessibility & contrast

On white

7.68
#7F22AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F22AD
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F22AD#FFFFFF#000000##FFFFFF
##7F22AD1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f22ad;
/* rgb */ color: rgb(127, 34, 173);
/* oklch */ color: oklch(47.0% 0.207 311.0);
Tailwind
colors: {
  custom: {
    50: '#a969c6',
    500: '#7f22ad',
    950: '#000000',
  },
}
SCSS
$custom: #7f22ad;
$custom-light: #a969c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f22ad",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 173
  },
  "hsl": {
    "h": 280.144,
    "s": 67.15,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46969,
    "c": 0.20712,
    "h": 311
  },
  "luminance": 0.08673
}

Semantic roles & 50–950 ramp

primary
#7F22AD
secondary
#85C764
accent
#EA3E77
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F22AD

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

Preview Lab → · Contrast checker → · Palette generator →

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