#7B22A7#7B22A7

#7B22A7 is a mid, highly saturated purple. Relative luminance 0.081; OKLCH L 46.0% C 0.201 H 311.2°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7B22A7
RGBrgb(123, 34, 167)
HSLhsl(280, 66%, 39%)
HSVhsv(280, 80%, 65%)
CMYKcmyk(26.3%, 79.6%, 0%, 34.5%)
CIE-LABlab(34.28, 57.68, -53.24)
CIE-LCHlch(34.28, 78.50, 317.29°)
OKLaboklab(45.96% 0.132 -0.1509)
OKLCHoklch(45.96% 0.201 311.2)
XYZxyz(15.7141, 8.1454, 37.2962)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B22A7 #4EA722
analogous
#3822A7 #7B22A7 #A72291
triadic
#7B22A7 #A77B22 #22A77B
tetradic
#7B22A7 #A73822 #4EA722 #2291A7
square
#7B22A7 #A73822 #4EA722 #2291A7
split-complementary
#7B22A7 #91A722 #22A738
monochromatic
#300D41 #561874 #7B22A7 #9F31D5 #B764DF

Accessibility & contrast

On white

7.99
#7B22A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7B22A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B22A7
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B22A7#FFFFFF#000000##FFFFFF
##7B22A71.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAB
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#754365
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b22a7;
/* rgb */ color: rgb(123, 34, 167);
/* oklch */ color: oklch(46.0% 0.201 311.2);
Tailwind
colors: {
  custom: {
    50: '#a668c2',
    500: '#7b22a7',
    950: '#000000',
  },
}
SCSS
$custom: #7b22a7;
$custom-light: #a668c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b22a7",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 280.15,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45956,
    "c": 0.2005,
    "h": 311.2
  },
  "luminance": 0.08145
}

Semantic roles & 50–950 ramp

primary
#7B22A7
secondary
#81C560
accent
#E93F77
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B22A7

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

Preview Lab → · Contrast checker → · Palette generator →

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