#7B22AC#7B22AC

#7B22AC is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.3% C 0.205 H 309.6°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7B22AC
RGBrgb(123, 34, 172)
HSLhsl(279, 67%, 40%)
HSVhsv(279, 80%, 67%)
CMYKcmyk(28.5%, 80.2%, 0%, 32.5%)
CIE-LABlab(34.67, 58.74, -55.61)
CIE-LCHlch(34.67, 80.89, 316.57°)
OKLaboklab(46.35% 0.1308 -0.1579)
OKLCHoklch(46.35% 0.205 309.6)
XYZxyz(16.1853, 8.3339, 39.7777)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B22AC #53AC22
analogous
#3622AC #7B22AC #AC2298
triadic
#7B22AC #AC7B22 #22AC7B
tetradic
#7B22AC #AC3622 #53AC22 #2298AC
square
#7B22AC #AC3622 #53AC22 #2298AC
split-complementary
#7B22AC #98AC22 #22AC36
monochromatic
#320E46 #561879 #7B22AC #9D34D7 #B667E1

Accessibility & contrast

On white

7.87
#7B22AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B22AC
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B22AC#FFFFFF#000000##FFFFFF
##7B22AC1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#744568
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b22ac;
/* rgb */ color: rgb(123, 34, 172);
/* oklch */ color: oklch(46.3% 0.205 309.6);
Tailwind
colors: {
  custom: {
    50: '#a669c6',
    500: '#7b22ac',
    950: '#000000',
  },
}
SCSS
$custom: #7b22ac;
$custom-light: #a669c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b22ac",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 172
  },
  "hsl": {
    "h": 278.696,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46346,
    "c": 0.20506,
    "h": 309.6
  },
  "luminance": 0.08334
}

Semantic roles & 50–950 ramp

primary
#7B22AC
secondary
#86C763
accent
#EA3E7B
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B22AC

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

Preview Lab → · Contrast checker → · Palette generator →

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