#7F22A6#7F22A6

#7F22A6 is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.4% C 0.201 H 313.2°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7F22A6
RGBrgb(127, 34, 166)
HSLhsl(282, 66%, 39%)
HSVhsv(282, 80%, 65%)
CMYKcmyk(23.5%, 79.5%, 0%, 34.9%)
CIE-LABlab(34.82, 58.20, -51.74)
CIE-LCHlch(34.82, 77.87, 318.36°)
OKLaboklab(46.43% 0.1375 -0.1464)
OKLCHoklch(46.43% 0.201 313.2)
XYZxyz(16.2061, 8.4098, 36.8386)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F22A6 #49A622
analogous
#3D22A6 #7F22A6 #A6228B
triadic
#7F22A6 #A67F22 #22A67F
tetradic
#7F22A6 #A63D22 #49A622 #228BA6
square
#7F22A6 #A63D22 #49A622 #228BA6
split-complementary
#7F22A6 #8BA622 #22A63D
monochromatic
#310D40 #581873 #7F22A6 #A430D5 #BB63DF

Accessibility & contrast

On white

7.83
#7F22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7F22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F22A6
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F22A6#FFFFFF#000000##FFFFFF
##7F22A61.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#0F54A3
Tritanopia (blue-blind)
#7B4264
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f22a6;
/* rgb */ color: rgb(127, 34, 166);
/* oklch */ color: oklch(46.4% 0.201 313.2);
Tailwind
colors: {
  custom: {
    50: '#a969c1',
    500: '#7f22a6',
    950: '#000000',
  },
}
SCSS
$custom: #7f22a6;
$custom-light: #a969c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f22a6",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 282.273,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46435,
    "c": 0.20082,
    "h": 313.2
  },
  "luminance": 0.08409
}

Semantic roles & 50–950 ramp

primary
#7F22A6
secondary
#7DC45F
accent
#E93F71
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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