#7B22A6#7B22A6

#7B22A6 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.9% C 0.200 H 311.5°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7B22A6
RGBrgb(123, 34, 166)
HSLhsl(280, 66%, 39%)
HSVhsv(280, 80%, 65%)
CMYKcmyk(25.9%, 79.5%, 0%, 34.9%)
CIE-LABlab(34.21, 57.47, -52.76)
CIE-LCHlch(34.21, 78.02, 317.45°)
OKLaboklab(45.88% 0.1322 -0.1495)
OKLCHoklch(45.88% 0.2 311.5)
XYZxyz(15.6220, 8.1086, 36.8112)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B22A6 #4DA622
analogous
#3922A6 #7B22A6 #A6228F
triadic
#7B22A6 #A67B22 #22A67B
tetradic
#7B22A6 #A63922 #4DA622 #228FA6
square
#7B22A6 #A63922 #4DA622 #228FA6
split-complementary
#7B22A6 #8FA622 #22A639
monochromatic
#300D40 #551873 #7B22A6 #9F30D5 #B763DF

Accessibility & contrast

On white

8.01
#7B22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7B22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B22A6
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B22A6#FFFFFF#000000##FFFFFF
##7B22A61.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#0052A3
Tritanopia (blue-blind)
#754364
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b22a6;
/* rgb */ color: rgb(123, 34, 166);
/* oklch */ color: oklch(45.9% 0.200 311.5);
Tailwind
colors: {
  custom: {
    50: '#a668c1',
    500: '#7b22a6',
    950: '#000000',
  },
}
SCSS
$custom: #7b22a6;
$custom-light: #a668c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b22a6",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 280.455,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45879,
    "c": 0.19958,
    "h": 311.5
  },
  "luminance": 0.08108
}

Semantic roles & 50–950 ramp

primary
#7B22A6
secondary
#80C45F
accent
#E93F76
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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