#7C22D4#7C22D4

#7C22D4 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.8% C 0.242 H 299.8°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#7C22D4
RGBrgb(124, 34, 212)
HSLhsl(270, 72%, 48%)
HSVhsv(270, 84%, 83%)
CMYKcmyk(41.5%, 84%, 0%, 16.9%)
CIE-LABlab(38.17, 67.66, -73.39)
CIE-LCHlch(38.17, 99.82, 312.67°)
OKLaboklab(49.84% 0.1203 -0.2101)
OKLCHoklch(49.84% 0.242 299.8)
XYZxyz(20.7649, 10.1824, 63.1460)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C22D4 #7AD422
analogous
#2322D4 #7C22D4 #D422D3
triadic
#7C22D4 #D47C22 #22D47C
tetradic
#7C22D4 #D42322 #7AD422 #22D3D4
square
#7C22D4 #D42322 #7AD422 #22D3D4
split-complementary
#7C22D4 #D3D422 #22D423
monochromatic
#3E116B #5D1A9F #7C22D4 #9A50E3 #B985EB

Accessibility & contrast

On white

6.92
#7C22D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7C22D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C22D4
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C22D4#FFFFFF#000000##FFFFFF
##7C22D41.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D9
Deuteranopia (green-blind)
#0058D1
Tritanopia (blue-blind)
#66577F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7c22d4;
/* rgb */ color: rgb(124, 34, 212);
/* oklch */ color: oklch(49.8% 0.242 299.8);
Tailwind
colors: {
  custom: {
    50: '#aa6be2',
    500: '#7c22d4',
    950: '#000000',
  },
}
SCSS
$custom: #7c22d4;
$custom-light: #aa6be2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c22d4",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 212
  },
  "hsl": {
    "h": 270.337,
    "s": 72.358,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49836,
    "c": 0.24209,
    "h": 299.8
  },
  "luminance": 0.10183
}

Semantic roles & 50–950 ramp

primary
#7C22D4
secondary
#A8D57D
accent
#EF3993
background
#FBF6FE
surface
#F6ECFC
border
#D0C7D5
text
#110716
muted
#807A84

Preview Lab

Preview with #7C22D4

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

Preview Lab → · Contrast checker → · Palette generator →

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