#7B22A3#7B22A3

#7B22A3 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.197 H 312.4°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#7B22A3
RGBrgb(123, 34, 163)
HSLhsl(281, 65%, 39%)
HSVhsv(281, 79%, 64%)
CMYKcmyk(24.5%, 79.1%, 0%, 36.1%)
CIE-LABlab(33.98, 56.85, -51.32)
CIE-LCHlch(33.98, 76.58, 317.92°)
OKLaboklab(45.65% 0.1328 -0.1453)
OKLCHoklch(45.65% 0.197 312.4)
XYZxyz(15.3501, 7.9998, 35.3787)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B22A3 #4AA322
analogous
#3A22A3 #7B22A3 #A3228A
triadic
#7B22A3 #A37B22 #22A37B
tetradic
#7B22A3 #A33A22 #4AA322 #228AA3
square
#7B22A3 #A33A22 #4AA322 #228AA3
split-complementary
#7B22A3 #8AA322 #22A33A
monochromatic
#2F0D3E #551770 #7B22A3 #A02FD4 #B761DE

Accessibility & contrast

On white

8.08
#7B22A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7B22A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B22A3
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B22A3#FFFFFF#000000##FFFFFF
##7B22A31.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA6
Deuteranopia (green-blind)
#0A52A0
Tritanopia (blue-blind)
#764162
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b22a3;
/* rgb */ color: rgb(123, 34, 163);
/* oklch */ color: oklch(45.6% 0.197 312.4);
Tailwind
colors: {
  custom: {
    50: '#a668bf',
    500: '#7b22a3',
    950: '#000000',
  },
}
SCSS
$custom: #7b22a3;
$custom-light: #a668bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b22a3",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 163
  },
  "hsl": {
    "h": 281.395,
    "s": 65.482,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4565,
    "c": 0.19684,
    "h": 312.4
  },
  "luminance": 0.07999
}

Semantic roles & 50–950 ramp

primary
#7B22A3
secondary
#7DC35E
accent
#E83F74
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B22A3

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

Preview Lab → · Contrast checker → · Palette generator →

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