#7D22D4#7D22D4

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

Color values

HEX#7D22D4
RGBrgb(125, 34, 212)
HSLhsl(271, 72%, 48%)
HSVhsv(271, 84%, 83%)
CMYKcmyk(41%, 84%, 0%, 16.9%)
CIE-LABlab(38.30, 67.79, -73.17)
CIE-LCHlch(38.30, 99.74, 312.81°)
OKLaboklab(49.96% 0.1218 -0.2094)
OKLCHoklch(49.96% 0.242 300.2)
XYZxyz(20.9101, 10.2573, 63.1528)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D22D4 #79D422
analogous
#2422D4 #7D22D4 #D422D2
triadic
#7D22D4 #D47D22 #22D47D
tetradic
#7D22D4 #D42422 #79D422 #22D2D4
square
#7D22D4 #D42422 #79D422 #22D2D4
split-complementary
#7D22D4 #D2D422 #22D424
monochromatic
#3F116B #5E1A9F #7D22D4 #9B50E3 #B985EB

Accessibility & contrast

On white

6.88
#7D22D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7D22D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D22D4
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D22D4#FFFFFF#000000##FFFFFF
##7D22D41.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD9
Deuteranopia (green-blind)
#0059D1
Tritanopia (blue-blind)
#68577F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7d22d4;
/* rgb */ color: rgb(125, 34, 212);
/* oklch */ color: oklch(50.0% 0.242 300.2);
Tailwind
colors: {
  custom: {
    50: '#ab6be2',
    500: '#7d22d4',
    950: '#000000',
  },
}
SCSS
$custom: #7d22d4;
$custom-light: #ab6be2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d22d4",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 212
  },
  "hsl": {
    "h": 270.674,
    "s": 72.358,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49956,
    "c": 0.24223,
    "h": 300.2
  },
  "luminance": 0.10257
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D22D4

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

Preview Lab → · Contrast checker → · Palette generator →

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