#7F22AF#7F22AF

#7F22AF is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.1% C 0.209 H 310.5°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#7F22AF
RGBrgb(127, 34, 175)
HSLhsl(280, 67%, 41%)
HSVhsv(280, 81%, 69%)
CMYKcmyk(27.4%, 80.6%, 0%, 31.4%)
CIE-LABlab(35.50, 60.06, -56.03)
CIE-LCHlch(35.50, 82.13, 316.99°)
OKLaboklab(47.12% 0.1355 -0.159)
OKLCHoklch(47.12% 0.209 310.5)
XYZxyz(17.0608, 8.7516, 41.3396)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F22AF #52AF22
analogous
#3822AF #7F22AF #AF2298
triadic
#7F22AF #AF7F22 #22AF7F
tetradic
#7F22AF #AF3822 #52AF22 #2298AF
square
#7F22AF #AF3822 #52AF22 #2298AF
split-complementary
#7F22AF #98AF22 #22AF38
monochromatic
#350E49 #5A187C #7F22AF #A136D8 #B969E2

Accessibility & contrast

On white

7.64
#7F22AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7F22AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F22AF
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F22AF#FFFFFF#000000##FFFFFF
##7F22AF1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#0055AC
Tritanopia (blue-blind)
#784669
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f22af;
/* rgb */ color: rgb(127, 34, 175);
/* oklch */ color: oklch(47.1% 0.209 310.5);
Tailwind
colors: {
  custom: {
    50: '#a969c8',
    500: '#7f22af',
    950: '#000000',
  },
}
SCSS
$custom: #7f22af;
$custom-light: #a969c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f22af",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 175
  },
  "hsl": {
    "h": 279.574,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47124,
    "c": 0.20891,
    "h": 310.5
  },
  "luminance": 0.08751
}

Semantic roles & 50–950 ramp

primary
#7F22AF
secondary
#87C865
accent
#EA3D78
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F22AF

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

Preview Lab → · Contrast checker → · Palette generator →

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