#7B22A1#7B22A1

#7B22A1 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.195 H 313.1°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7B22A1
RGBrgb(123, 34, 161)
HSLhsl(282, 65%, 38%)
HSVhsv(282, 79%, 63%)
CMYKcmyk(23.6%, 78.9%, 0%, 36.9%)
CIE-LABlab(33.83, 56.43, -50.35)
CIE-LCHlch(33.83, 75.63, 318.26°)
OKLaboklab(45.5% 0.1332 -0.1424)
OKLCHoklch(45.5% 0.195 313.1)
XYZxyz(15.1723, 7.9287, 34.4425)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B22A1 #48A122
analogous
#3B22A1 #7B22A1 #A12287
triadic
#7B22A1 #A17B22 #22A17B
tetradic
#7B22A1 #A13B22 #48A122 #2287A1
square
#7B22A1 #A13B22 #48A122 #2287A1
split-complementary
#7B22A1 #87A122 #22A13B
monochromatic
#2E0D3C #54176E #7B22A1 #A12DD3 #B860DD

Accessibility & contrast

On white

8.12
#7B22A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7B22A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B22A1
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B22A1#FFFFFF#000000##FFFFFF
##7B22A11.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#10519E
Tritanopia (blue-blind)
#774061
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b22a1;
/* rgb */ color: rgb(123, 34, 161);
/* oklch */ color: oklch(45.5% 0.195 313.1);
Tailwind
colors: {
  custom: {
    50: '#a668be',
    500: '#7b22a1',
    950: '#000000',
  },
}
SCSS
$custom: #7b22a1;
$custom-light: #a668be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b22a1",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 161
  },
  "hsl": {
    "h": 282.047,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45499,
    "c": 0.19503,
    "h": 313.1
  },
  "luminance": 0.07928
}

Semantic roles & 50–950 ramp

primary
#7B22A1
secondary
#7BC25D
accent
#E84072
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B22A1

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

Preview Lab → · Contrast checker → · Palette generator →

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