#7B22AD#7B22AD

#7B22AD is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.4% C 0.206 H 309.3°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7B22AD
RGBrgb(123, 34, 173)
HSLhsl(278, 67%, 41%)
HSVhsv(278, 80%, 68%)
CMYKcmyk(28.9%, 80.3%, 0%, 32.2%)
CIE-LABlab(34.75, 58.95, -56.08)
CIE-LCHlch(34.75, 81.37, 316.43°)
OKLaboklab(46.43% 0.1306 -0.1593)
OKLCHoklch(46.43% 0.206 309.3)
XYZxyz(16.2817, 8.3725, 40.2854)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B22AD #54AD22
analogous
#3522AD #7B22AD #AD2299
triadic
#7B22AD #AD7B22 #22AD7B
tetradic
#7B22AD #AD3522 #54AD22 #2299AD
square
#7B22AD #AD3522 #54AD22 #2299AD
split-complementary
#7B22AD #99AD22 #22AD35
monochromatic
#320E47 #57187A #7B22AD #9D35D7 #B668E1

Accessibility & contrast

On white

7.85
#7B22AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7B22AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B22AD
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B22AD#FFFFFF#000000##FFFFFF
##7B22AD1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB1
Deuteranopia (green-blind)
#0053AA
Tritanopia (blue-blind)
#734668
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b22ad;
/* rgb */ color: rgb(123, 34, 173);
/* oklch */ color: oklch(46.4% 0.206 309.3);
Tailwind
colors: {
  custom: {
    50: '#a669c6',
    500: '#7b22ad',
    950: '#000000',
  },
}
SCSS
$custom: #7b22ad;
$custom-light: #a669c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b22ad",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 173
  },
  "hsl": {
    "h": 278.417,
    "s": 67.15,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46425,
    "c": 0.20598,
    "h": 309.3
  },
  "luminance": 0.08372
}

Semantic roles & 50–950 ramp

primary
#7B22AD
secondary
#87C764
accent
#EA3E7C
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B22AD

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

Preview Lab → · Contrast checker → · Palette generator →

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