#7C22B9#7C22B9

#7C22B9 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.5% C 0.217 H 306.4°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7C22B9
RGBrgb(124, 34, 185)
HSLhsl(276, 69%, 43%)
HSVhsv(276, 82%, 73%)
CMYKcmyk(33%, 81.6%, 0%, 27.5%)
CIE-LABlab(35.85, 61.70, -61.41)
CIE-LCHlch(35.85, 87.05, 315.13°)
OKLaboklab(47.53% 0.1288 -0.1749)
OKLCHoklch(47.53% 0.217 306.4)
XYZxyz(17.6392, 8.9321, 46.6843)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C22B9 #5FB922
analogous
#3122B9 #7C22B9 #B922AA
triadic
#7C22B9 #B97C22 #22B97C
tetradic
#7C22B9 #B93122 #5FB922 #22AAB9
square
#7C22B9 #B93122 #5FB922 #22AAB9
split-complementary
#7C22B9 #AAB922 #22B931
monochromatic
#370F52 #591885 #7C22B9 #9B3DDB #B671E5

Accessibility & contrast

On white

7.54
#7C22B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7C22B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C22B9
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C22B9#FFFFFF#000000##FFFFFF
##7C22B91.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BD
Deuteranopia (green-blind)
#0055B6
Tritanopia (blue-blind)
#714B6F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c22b9;
/* rgb */ color: rgb(124, 34, 185);
/* oklch */ color: oklch(47.5% 0.217 306.4);
Tailwind
colors: {
  custom: {
    50: '#a869cf',
    500: '#7c22b9',
    950: '#000000',
  },
}
SCSS
$custom: #7c22b9;
$custom-light: #a869cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c22b9",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 185
  },
  "hsl": {
    "h": 275.762,
    "s": 68.95,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47525,
    "c": 0.21723,
    "h": 306.4
  },
  "luminance": 0.08932
}

Semantic roles & 50–950 ramp

primary
#7C22B9
secondary
#92CB6B
accent
#EC3C83
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7C22B9

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

Preview Lab → · Contrast checker → · Palette generator →

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