#7B22A5#7B22A5

#7B22A5 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.199 H 311.8°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7B22A5
RGBrgb(123, 34, 165)
HSLhsl(281, 66%, 39%)
HSVhsv(281, 79%, 65%)
CMYKcmyk(25.5%, 79.4%, 0%, 35.3%)
CIE-LABlab(34.13, 57.26, -52.28)
CIE-LCHlch(34.13, 77.54, 317.60°)
OKLaboklab(45.8% 0.1324 -0.1481)
OKLCHoklch(45.8% 0.199 311.8)
XYZxyz(15.5307, 8.0720, 36.3300)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B22A5 #4CA522
analogous
#3922A5 #7B22A5 #A5228E
triadic
#7B22A5 #A57B22 #22A57B
tetradic
#7B22A5 #A53922 #4CA522 #228EA5
square
#7B22A5 #A53922 #4CA522 #228EA5
split-complementary
#7B22A5 #8EA522 #22A539
monochromatic
#2F0D40 #551872 #7B22A5 #A030D4 #B763DF

Accessibility & contrast

On white

8.03
#7B22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7B22A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B22A5
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B22A5#FFFFFF#000000##FFFFFF
##7B22A51.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA9
Deuteranopia (green-blind)
#0252A2
Tritanopia (blue-blind)
#764264
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b22a5;
/* rgb */ color: rgb(123, 34, 165);
/* oklch */ color: oklch(45.8% 0.199 311.8);
Tailwind
colors: {
  custom: {
    50: '#a668c0',
    500: '#7b22a5',
    950: '#000000',
  },
}
SCSS
$custom: #7b22a5;
$custom-light: #a668c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b22a5",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 280.763,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45802,
    "c": 0.19867,
    "h": 311.8
  },
  "luminance": 0.08072
}

Semantic roles & 50–950 ramp

primary
#7B22A5
secondary
#7FC45F
accent
#E93F75
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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