#7F22A5#7F22A5

#7F22A5 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.4% C 0.200 H 313.5°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7F22A5
RGBrgb(127, 34, 165)
HSLhsl(283, 66%, 39%)
HSVhsv(283, 79%, 65%)
CMYKcmyk(23%, 79.4%, 0%, 35.3%)
CIE-LABlab(34.75, 57.99, -51.26)
CIE-LCHlch(34.75, 77.40, 318.53°)
OKLaboklab(46.36% 0.1377 -0.145)
OKLCHoklch(46.36% 0.2 313.5)
XYZxyz(16.1148, 8.3732, 36.3573)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F22A5 #48A522
analogous
#3D22A5 #7F22A5 #A5228A
triadic
#7F22A5 #A57F22 #22A57F
tetradic
#7F22A5 #A53D22 #48A522 #228AA5
square
#7F22A5 #A53D22 #48A522 #228AA5
split-complementary
#7F22A5 #8AA522 #22A53D
monochromatic
#310D40 #581872 #7F22A5 #A530D4 #BB63DF

Accessibility & contrast

On white

7.85
#7F22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F22A5
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F22A5#FFFFFF#000000##FFFFFF
##7F22A51.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#1254A2
Tritanopia (blue-blind)
#7B4264
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f22a5;
/* rgb */ color: rgb(127, 34, 165);
/* oklch */ color: oklch(46.4% 0.200 313.5);
Tailwind
colors: {
  custom: {
    50: '#a969c0',
    500: '#7f22a5',
    950: '#000000',
  },
}
SCSS
$custom: #7f22a5;
$custom-light: #a969c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f22a5",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 282.595,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4636,
    "c": 0.19994,
    "h": 313.5
  },
  "luminance": 0.08373
}

Semantic roles & 50–950 ramp

primary
#7F22A5
secondary
#7CC45F
accent
#E93F70
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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