#7B22AA#7B22AA

#7B22AA is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.2% C 0.203 H 310.2°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7B22AA
RGBrgb(123, 34, 170)
HSLhsl(279, 67%, 40%)
HSVhsv(279, 80%, 67%)
CMYKcmyk(27.6%, 80%, 0%, 33.3%)
CIE-LABlab(34.51, 58.31, -54.67)
CIE-LCHlch(34.51, 79.93, 316.85°)
OKLaboklab(46.19% 0.1313 -0.1551)
OKLCHoklch(46.19% 0.203 310.2)
XYZxyz(15.9947, 8.2577, 38.7737)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B22AA #51AA22
analogous
#3722AA #7B22AA #AA2295
triadic
#7B22AA #AA7B22 #22AA7B
tetradic
#7B22AA #AA3722 #51AA22 #2295AA
square
#7B22AA #AA3722 #51AA22 #2295AA
split-complementary
#7B22AA #95AA22 #22AA37
monochromatic
#310E44 #561877 #7B22AA #9E33D6 #B666E0

Accessibility & contrast

On white

7.92
#7B22AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7B22AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B22AA
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B22AA#FFFFFF#000000##FFFFFF
##7B22AA1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0052A7
Tritanopia (blue-blind)
#744566
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b22aa;
/* rgb */ color: rgb(123, 34, 170);
/* oklch */ color: oklch(46.2% 0.203 310.2);
Tailwind
colors: {
  custom: {
    50: '#a669c4',
    500: '#7b22aa',
    950: '#000000',
  },
}
SCSS
$custom: #7b22aa;
$custom-light: #a669c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b22aa",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 170
  },
  "hsl": {
    "h": 279.265,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.46189,
    "c": 0.20324,
    "h": 310.2
  },
  "luminance": 0.08257
}

Semantic roles & 50–950 ramp

primary
#7B22AA
secondary
#84C662
accent
#EA3E79
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B22AA

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

Preview Lab → · Contrast checker → · Palette generator →

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