#7D22D5#7D22D5

#7D22D5 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 50.0% C 0.243 H 300.0°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#7D22D5
RGBrgb(125, 34, 213)
HSLhsl(271, 72%, 48%)
HSVhsv(271, 84%, 84%)
CMYKcmyk(41.3%, 84%, 0%, 16.5%)
CIE-LABlab(38.39, 68.01, -73.60)
CIE-LCHlch(38.39, 100.21, 312.74°)
OKLaboklab(50.04% 0.1214 -0.2106)
OKLCHoklch(50.04% 0.243 300)
XYZxyz(21.0367, 10.3079, 63.8192)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D22D5 #7AD522
analogous
#2322D5 #7D22D5 #D522D3
triadic
#7D22D5 #D57D22 #22D57D
tetradic
#7D22D5 #D52322 #7AD522 #22D3D5
square
#7D22D5 #D52322 #7AD522 #22D3D5
split-complementary
#7D22D5 #D3D522 #22D523
monochromatic
#3F116B #5E1AA0 #7D22D5 #9B51E3 #BA86EC

Accessibility & contrast

On white

6.86
#7D22D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7D22D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D22D5
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D22D5#FFFFFF#000000##FFFFFF
##7D22D51.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ADA
Deuteranopia (green-blind)
#0059D2
Tritanopia (blue-blind)
#685880
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7d22d5;
/* rgb */ color: rgb(125, 34, 213);
/* oklch */ color: oklch(50.0% 0.243 300.0);
Tailwind
colors: {
  custom: {
    50: '#ab6be3',
    500: '#7d22d5',
    950: '#000000',
  },
}
SCSS
$custom: #7d22d5;
$custom-light: #ab6be3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d22d5",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 213
  },
  "hsl": {
    "h": 270.503,
    "s": 72.47,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50044,
    "c": 0.24315,
    "h": 300
  },
  "luminance": 0.10308
}

Semantic roles & 50–950 ramp

primary
#7D22D5
secondary
#A9D57E
accent
#EF3992
background
#FBF6FE
surface
#F6ECFC
border
#D0C7D5
text
#110816
muted
#807A84

Preview Lab

Preview with #7D22D5

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

Preview Lab → · Contrast checker → · Palette generator →

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