#7D22C2#7D22C2

#7D22C2 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.4% C 0.226 H 304.4°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#7D22C2
RGBrgb(125, 34, 194)
HSLhsl(274, 70%, 45%)
HSVhsv(274, 82%, 76%)
CMYKcmyk(35.6%, 82.5%, 0%, 23.9%)
CIE-LABlab(36.74, 63.81, -65.25)
CIE-LCHlch(36.74, 91.26, 314.36°)
OKLaboklab(48.4% 0.1276 -0.1861)
OKLCHoklch(48.4% 0.226 304.4)
XYZxyz(18.7648, 9.3991, 51.8541)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D22C2 #67C222
analogous
#2D22C2 #7D22C2 #C222B7
triadic
#7D22C2 #C27D22 #22C27D
tetradic
#7D22C2 #C22D22 #67C222 #22B7C2
square
#7D22C2 #C22D22 #67C222 #22B7C2
split-complementary
#7D22C2 #B7C222 #22C22D
monochromatic
#3A105A #5B198E #7D22C2 #9B43DE #B777E7

Accessibility & contrast

On white

7.29
#7D22C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7D22C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D22C2
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D22C2#FFFFFF#000000##FFFFFF
##7D22C21.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#0056BF
Tritanopia (blue-blind)
#6F4F74
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7d22c2;
/* rgb */ color: rgb(125, 34, 194);
/* oklch */ color: oklch(48.4% 0.226 304.4);
Tailwind
colors: {
  custom: {
    50: '#a96ad6',
    500: '#7d22c2',
    950: '#000000',
  },
}
SCSS
$custom: #7d22c2;
$custom-light: #a96ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d22c2",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 194
  },
  "hsl": {
    "h": 274.125,
    "s": 70.175,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48402,
    "c": 0.2257,
    "h": 304.4
  },
  "luminance": 0.09399
}

Semantic roles & 50–950 ramp

primary
#7D22C2
secondary
#99CF71
accent
#ED3B88
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7D22C2

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

Preview Lab → · Contrast checker → · Palette generator →

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