#7D22A8#7D22A8

#7D22A8 is a mid, highly saturated purple. Relative luminance 0.083; OKLCH L 46.3% C 0.202 H 311.7°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#7D22A8
RGBrgb(125, 34, 168)
HSLhsl(281, 66%, 40%)
HSVhsv(281, 80%, 66%)
CMYKcmyk(25.6%, 79.8%, 0%, 34.1%)
CIE-LABlab(34.66, 58.25, -53.21)
CIE-LCHlch(34.66, 78.89, 317.59°)
OKLaboklab(46.31% 0.1344 -0.1508)
OKLCHoklch(46.31% 0.202 311.7)
XYZxyz(16.0960, 8.3316, 37.7985)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D22A8 #4DA822
analogous
#3A22A8 #7D22A8 #A82290
triadic
#7D22A8 #A87D22 #22A87D
tetradic
#7D22A8 #A83A22 #4DA822 #2290A8
square
#7D22A8 #A83A22 #4DA822 #2290A8
split-complementary
#7D22A8 #90A822 #22A83A
monochromatic
#310D42 #571875 #7D22A8 #A132D5 #B865E0

Accessibility & contrast

On white

7.88
#7D22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D22A8
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D22A8#FFFFFF#000000##FFFFFF
##7D22A81.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#0053A5
Tritanopia (blue-blind)
#784365
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d22a8;
/* rgb */ color: rgb(125, 34, 168);
/* oklch */ color: oklch(46.3% 0.202 311.7);
Tailwind
colors: {
  custom: {
    50: '#a769c3',
    500: '#7d22a8',
    950: '#000000',
  },
}
SCSS
$custom: #7d22a8;
$custom-light: #a769c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d22a8",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 280.746,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46308,
    "c": 0.202,
    "h": 311.7
  },
  "luminance": 0.08331
}

Semantic roles & 50–950 ramp

primary
#7D22A8
secondary
#81C561
accent
#E93F75
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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