#822172#822172

#822172 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.4% C 0.160 H 335.5°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#822172
RGBrgb(130, 33, 114)
HSLhsl(310, 60%, 32%)
HSVhsv(310, 75%, 51%)
CMYKcmyk(0%, 74.6%, 12.3%, 49%)
CIE-LABlab(31.92, 49.65, -24.23)
CIE-LCHlch(31.92, 55.25, 333.99°)
OKLaboklab(43.42% 0.1452 -0.0661)
OKLCHoklch(43.42% 0.16 335.5)
XYZxyz(12.7872, 7.0496, 16.6036)
Luminance0.0705 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#822172 #218231
analogous
#622182 #822172 #822142
triadic
#822172 #728221 #217282
tetradic
#822172 #826221 #218231 #214282
square
#822172 #826221 #218231 #214282
split-complementary
#822172 #428221 #218262
monochromatic
#20081C #511547 #822172 #B32D9D #D24CBB

Accessibility & contrast

On white

8.72
#822172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#822172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #822172
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##822172#FFFFFF#000000##FFFFFF
##8221721.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214274
Deuteranopia (green-blind)
#435070
Tritanopia (blue-blind)
#892847
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #822172;
/* rgb */ color: rgb(130, 33, 114);
/* oklch */ color: oklch(43.4% 0.160 335.5);
Tailwind
colors: {
  custom: {
    50: '#aa669b',
    500: '#822172',
    950: '#000000',
  },
}
SCSS
$custom: #822172;
$custom-light: #aa669b;
$custom-dark: #000000;
JSON
{
  "hex": "#822172",
  "rgb": {
    "r": 130,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 309.897,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43418,
    "c": 0.15952,
    "h": 335.5
  },
  "luminance": 0.07048
}

Semantic roles & 50–950 ramp

primary
#822172
secondary
#4AB45C
accent
#E35F45
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #822172

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

Preview Lab → · Contrast checker → · Palette generator →

#822172 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva