#7C22C1#7C22C1

#7C22C1 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.2% C 0.225 H 304.3°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#7C22C1
RGBrgb(124, 34, 193)
HSLhsl(274, 70%, 45%)
HSVhsv(274, 82%, 76%)
CMYKcmyk(35.8%, 82.4%, 0%, 24.3%)
CIE-LABlab(36.52, 63.44, -65.04)
CIE-LCHlch(36.52, 90.85, 314.29°)
OKLaboklab(48.19% 0.1265 -0.1855)
OKLCHoklch(48.19% 0.225 304.3)
XYZxyz(18.5076, 9.2795, 51.2578)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C22C1 #67C122
analogous
#2C22C1 #7C22C1 #C122B7
triadic
#7C22C1 #C17C22 #22C17C
tetradic
#7C22C1 #C12C22 #67C122 #22B7C1
square
#7C22C1 #C12C22 #67C122 #22B7C1
split-complementary
#7C22C1 #B7C122 #22C12C
monochromatic
#391059 #5B198D #7C22C1 #9A42DE #B676E7

Accessibility & contrast

On white

7.35
#7C22C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7C22C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C22C1
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C22C1#FFFFFF#000000##FFFFFF
##7C22C11.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C5
Deuteranopia (green-blind)
#0056BE
Tritanopia (blue-blind)
#6E4F74
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c22c1;
/* rgb */ color: rgb(124, 34, 193);
/* oklch */ color: oklch(48.2% 0.225 304.3);
Tailwind
colors: {
  custom: {
    50: '#a96ad5',
    500: '#7c22c1',
    950: '#000000',
  },
}
SCSS
$custom: #7c22c1;
$custom-light: #a96ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c22c1",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 193
  },
  "hsl": {
    "h": 273.962,
    "s": 70.044,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48191,
    "c": 0.22457,
    "h": 304.3
  },
  "luminance": 0.09279
}

Semantic roles & 50–950 ramp

primary
#7C22C1
secondary
#99CE71
accent
#ED3B88
background
#FAF6FD
surface
#F5ECFA
border
#CFC7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7C22C1

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

Preview Lab → · Contrast checker → · Palette generator →

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