#7B22AE#7B22AE

#7B22AE is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.5% C 0.207 H 309.1°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7B22AE
RGBrgb(123, 34, 174)
HSLhsl(278, 67%, 41%)
HSVhsv(278, 80%, 68%)
CMYKcmyk(29.3%, 80.5%, 0%, 31.8%)
CIE-LABlab(34.83, 59.16, -56.55)
CIE-LCHlch(34.83, 81.85, 316.29°)
OKLaboklab(46.5% 0.1304 -0.1607)
OKLCHoklch(46.5% 0.207 309.1)
XYZxyz(16.3788, 8.4113, 40.7969)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B22AE #55AE22
analogous
#3522AE #7B22AE #AE229B
triadic
#7B22AE #AE7B22 #22AE7B
tetradic
#7B22AE #AE3522 #55AE22 #229BAE
square
#7B22AE #AE3522 #55AE22 #229BAE
split-complementary
#7B22AE #9BAE22 #22AE35
monochromatic
#330E48 #57187B #7B22AE #9D36D8 #B669E2

Accessibility & contrast

On white

7.83
#7B22AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7B22AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B22AE
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B22AE#FFFFFF#000000##FFFFFF
##7B22AE1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#0053AB
Tritanopia (blue-blind)
#734669
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b22ae;
/* rgb */ color: rgb(123, 34, 174);
/* oklch */ color: oklch(46.5% 0.207 309.1);
Tailwind
colors: {
  custom: {
    50: '#a669c7',
    500: '#7b22ae',
    950: '#000000',
  },
}
SCSS
$custom: #7b22ae;
$custom-light: #a669c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b22ae",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 174
  },
  "hsl": {
    "h": 278.143,
    "s": 67.308,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46504,
    "c": 0.2069,
    "h": 309.1
  },
  "luminance": 0.08411
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B22AE

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

Preview Lab → · Contrast checker → · Palette generator →

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