#7221AB#7221AB

#7221AB is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 45.0% C 0.203 H 306.1°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#7221AB
RGBrgb(114, 33, 171)
HSLhsl(275, 68%, 40%)
HSVhsv(275, 81%, 67%)
CMYKcmyk(33.3%, 80.7%, 0%, 32.9%)
CIE-LABlab(33.15, 57.35, -57.55)
CIE-LCHlch(33.15, 81.25, 314.90°)
OKLaboklab(44.99% 0.1194 -0.1639)
OKLCHoklch(44.99% 0.203 306.1)
XYZxyz(14.8323, 7.6055, 39.2068)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7221AB #5AAB21
analogous
#2D21AB #7221AB #AB219F
triadic
#7221AB #AB7221 #21AB72
tetradic
#7221AB #AB2D21 #5AAB21 #219FAB
square
#7221AB #AB2D21 #5AAB21 #219FAB
split-complementary
#7221AB #9FAB21 #21AB2D
monochromatic
#2E0D44 #501778 #7221AB #9332D7 #AE65E1

Accessibility & contrast

On white

8.33
#7221AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7221AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7221AB
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7221AB#FFFFFF#000000##FFFFFF
##7221AB1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7221ab;
/* rgb */ color: rgb(114, 33, 171);
/* oklch */ color: oklch(45.0% 0.203 306.1);
Tailwind
colors: {
  custom: {
    50: '#a067c5',
    500: '#7221ab',
    950: '#000000',
  },
}
SCSS
$custom: #7221ab;
$custom-light: #a067c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7221ab",
  "rgb": {
    "r": 114,
    "g": 33,
    "b": 171
  },
  "hsl": {
    "h": 275.217,
    "s": 67.647,
    "l": 40
  },
  "oklch": {
    "l": 0.44985,
    "c": 0.20275,
    "h": 306.1
  },
  "luminance": 0.07605
}

Semantic roles & 50–950 ramp

primary
#7221AB
secondary
#8BC761
accent
#EB3D85
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7221AB

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

Preview Lab → · Contrast checker → · Palette generator →

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