#7F22C1#7F22C1

#7F22C1 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.6% C 0.225 H 305.5°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#7F22C1
RGBrgb(127, 34, 193)
HSLhsl(275, 70%, 45%)
HSVhsv(275, 82%, 76%)
CMYKcmyk(34.2%, 82.4%, 0%, 24.3%)
CIE-LABlab(36.94, 63.89, -64.33)
CIE-LCHlch(36.94, 90.66, 314.80°)
OKLaboklab(48.57% 0.1308 -0.1834)
OKLCHoklch(48.57% 0.225 305.5)
XYZxyz(18.9479, 9.5065, 51.2785)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F22C1 #64C122
analogous
#2F22C1 #7F22C1 #C122B4
triadic
#7F22C1 #C17F22 #22C17F
tetradic
#7F22C1 #C12F22 #64C122 #22B4C1
square
#7F22C1 #C12F22 #64C122 #22B4C1
split-complementary
#7F22C1 #B4C122 #22C12F
monochromatic
#3B1059 #5D198D #7F22C1 #9D42DE #B876E7

Accessibility & contrast

On white

7.24
#7F22C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7F22C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F22C1
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F22C1#FFFFFF#000000##FFFFFF
##7F22C11.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C5
Deuteranopia (green-blind)
#0057BE
Tritanopia (blue-blind)
#734E74
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f22c1;
/* rgb */ color: rgb(127, 34, 193);
/* oklch */ color: oklch(48.6% 0.225 305.5);
Tailwind
colors: {
  custom: {
    50: '#ab6ad5',
    500: '#7f22c1',
    950: '#000000',
  },
}
SCSS
$custom: #7f22c1;
$custom-light: #ab6ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f22c1",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 193
  },
  "hsl": {
    "h": 275.094,
    "s": 70.044,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48574,
    "c": 0.2252,
    "h": 305.5
  },
  "luminance": 0.09506
}

Semantic roles & 50–950 ramp

primary
#7F22C1
secondary
#97CE71
accent
#ED3B85
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7F22C1

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

Preview Lab → · Contrast checker → · Palette generator →

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