#7D22C1#7D22C1

#7D22C1 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.3% C 0.225 H 304.7°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#7D22C1
RGBrgb(125, 34, 193)
HSLhsl(274, 70%, 45%)
HSVhsv(274, 82%, 76%)
CMYKcmyk(35.2%, 82.4%, 0%, 24.3%)
CIE-LABlab(36.66, 63.59, -64.80)
CIE-LCHlch(36.66, 90.79, 314.46°)
OKLaboklab(48.32% 0.1279 -0.1848)
OKLCHoklch(48.32% 0.225 304.7)
XYZxyz(18.6529, 9.3544, 51.2646)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D22C1 #66C122
analogous
#2E22C1 #7D22C1 #C122B5
triadic
#7D22C1 #C17D22 #22C17D
tetradic
#7D22C1 #C12E22 #66C122 #22B5C1
square
#7D22C1 #C12E22 #66C122 #22B5C1
split-complementary
#7D22C1 #B5C122 #22C12E
monochromatic
#3A1059 #5B198D #7D22C1 #9B42DE #B776E7

Accessibility & contrast

On white

7.32
#7D22C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7D22C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D22C1
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D22C1#FFFFFF#000000##FFFFFF
##7D22C11.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d22c1;
/* rgb */ color: rgb(125, 34, 193);
/* oklch */ color: oklch(48.3% 0.225 304.7);
Tailwind
colors: {
  custom: {
    50: '#a96ad5',
    500: '#7d22c1',
    950: '#000000',
  },
}
SCSS
$custom: #7d22c1;
$custom-light: #a96ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d22c1",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 193
  },
  "hsl": {
    "h": 274.34,
    "s": 70.044,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48318,
    "c": 0.22478,
    "h": 304.7
  },
  "luminance": 0.09354
}

Semantic roles & 50–950 ramp

primary
#7D22C1
secondary
#99CE71
accent
#ED3B87
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7D22C1

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

Preview Lab → · Contrast checker → · Palette generator →

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