#7F22C2#7F22C2

#7F22C2 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.7% C 0.226 H 305.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7F22C2
RGBrgb(127, 34, 194)
HSLhsl(275, 70%, 45%)
HSVhsv(275, 82%, 76%)
CMYKcmyk(34.5%, 82.5%, 0%, 23.9%)
CIE-LABlab(37.02, 64.11, -64.78)
CIE-LCHlch(37.02, 91.13, 314.70°)
OKLaboklab(48.66% 0.1305 -0.1847)
OKLCHoklch(48.66% 0.226 305.2)
XYZxyz(19.0598, 9.5512, 51.8679)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F22C2 #65C222
analogous
#2F22C2 #7F22C2 #C222B5
triadic
#7F22C2 #C27F22 #22C27F
tetradic
#7F22C2 #C22F22 #65C222 #22B5C2
square
#7F22C2 #C22F22 #65C222 #22B5C2
split-complementary
#7F22C2 #B5C222 #22C22F
monochromatic
#3B105A #5D198E #7F22C2 #9D43DE #B877E7

Accessibility & contrast

On white

7.22
#7F22C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7F22C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F22C2
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F22C2#FFFFFF#000000##FFFFFF
##7F22C21.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C6
Deuteranopia (green-blind)
#0057BF
Tritanopia (blue-blind)
#724F74
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f22c2;
/* rgb */ color: rgb(127, 34, 194);
/* oklch */ color: oklch(48.7% 0.226 305.2);
Tailwind
colors: {
  custom: {
    50: '#ab6ad6',
    500: '#7f22c2',
    950: '#000000',
  },
}
SCSS
$custom: #7f22c2;
$custom-light: #ab6ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f22c2",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 194
  },
  "hsl": {
    "h": 274.875,
    "s": 70.175,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48657,
    "c": 0.22611,
    "h": 305.2
  },
  "luminance": 0.09551
}

Semantic roles & 50–950 ramp

primary
#7F22C2
secondary
#98CF71
accent
#ED3B85
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7F22C2

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

Preview Lab → · Contrast checker → · Palette generator →

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