#7B22A9#7B22A9

#7B22A9 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.1% C 0.202 H 310.5°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7B22A9
RGBrgb(123, 34, 169)
HSLhsl(280, 67%, 40%)
HSVhsv(280, 80%, 66%)
CMYKcmyk(27.2%, 79.9%, 0%, 33.7%)
CIE-LABlab(34.44, 58.10, -54.19)
CIE-LCHlch(34.44, 79.45, 316.99°)
OKLaboklab(46.11% 0.1315 -0.1537)
OKLCHoklch(46.11% 0.202 310.5)
XYZxyz(15.9004, 8.2200, 38.2774)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B22A9 #50A922
analogous
#3822A9 #7B22A9 #A92293
triadic
#7B22A9 #A97B22 #22A97B
tetradic
#7B22A9 #A93822 #50A922 #2293A9
square
#7B22A9 #A93822 #50A922 #2293A9
split-complementary
#7B22A9 #93A922 #22A938
monochromatic
#310D43 #561876 #7B22A9 #9E32D6 #B665E0

Accessibility & contrast

On white

7.94
#7B22A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7B22A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B22A9
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B22A9#FFFFFF#000000##FFFFFF
##7B22A91.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#0052A6
Tritanopia (blue-blind)
#754466
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b22a9;
/* rgb */ color: rgb(123, 34, 169);
/* oklch */ color: oklch(46.1% 0.202 310.5);
Tailwind
colors: {
  custom: {
    50: '#a668c3',
    500: '#7b22a9',
    950: '#000000',
  },
}
SCSS
$custom: #7b22a9;
$custom-light: #a668c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b22a9",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 169
  },
  "hsl": {
    "h": 279.556,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46111,
    "c": 0.20232,
    "h": 310.5
  },
  "luminance": 0.0822
}

Semantic roles & 50–950 ramp

primary
#7B22A9
secondary
#83C561
accent
#E93E79
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B22A9

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

Preview Lab → · Contrast checker → · Palette generator →

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