#7222AB#7222AB

#7222AB is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.1% C 0.202 H 306.0°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#7222AB
RGBrgb(114, 34, 171)
HSLhsl(275, 67%, 40%)
HSVhsv(275, 80%, 67%)
CMYKcmyk(33.3%, 80.1%, 0%, 32.9%)
CIE-LABlab(33.27, 57.00, -57.35)
CIE-LCHlch(33.27, 80.86, 314.82°)
OKLaboklab(45.07% 0.1186 -0.1633)
OKLCHoklch(45.07% 0.202 306)
XYZxyz(14.8605, 7.6619, 39.2162)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7222AB #5BAB22
analogous
#2D22AB #7222AB #AB22A0
triadic
#7222AB #AB7222 #22AB72
tetradic
#7222AB #AB2D22 #5BAB22 #22A0AB
square
#7222AB #AB2D22 #5BAB22 #22A0AB
split-complementary
#7222AB #A0AB22 #22AB2D
monochromatic
#2E0E45 #501878 #7222AB #9334D7 #AE67E1

Accessibility & contrast

On white

8.29
#7222AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7222AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7222AB
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7222AB#FFFFFF#000000##FFFFFF
##7222AB1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#684667
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7222ab;
/* rgb */ color: rgb(114, 34, 171);
/* oklch */ color: oklch(45.1% 0.202 306.0);
Tailwind
colors: {
  custom: {
    50: '#a067c5',
    500: '#7222ab',
    950: '#000000',
  },
}
SCSS
$custom: #7222ab;
$custom-light: #a067c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7222ab",
  "rgb": {
    "r": 114,
    "g": 34,
    "b": 171
  },
  "hsl": {
    "h": 275.036,
    "s": 66.829,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4507,
    "c": 0.20183,
    "h": 306
  },
  "luminance": 0.07662
}

Semantic roles & 50–950 ramp

primary
#7222AB
secondary
#8CC663
accent
#EA3E85
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7222AB

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

Preview Lab → · Contrast checker → · Palette generator →

#7222AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva