#802172#802172

#802172 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.1% C 0.158 H 334.6°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#802172
RGBrgb(128, 33, 114)
HSLhsl(309, 59%, 32%)
HSVhsv(309, 74%, 50%)
CMYKcmyk(0%, 74.2%, 10.9%, 49.8%)
CIE-LABlab(31.56, 49.15, -24.82)
CIE-LCHlch(31.56, 55.06, 333.21°)
OKLaboklab(43.09% 0.143 -0.0678)
OKLCHoklch(43.09% 0.158 334.6)
XYZxyz(12.4833, 6.8929, 16.5893)
Luminance0.0689 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802172 #21802F
analogous
#5F2180 #802172 #802143
triadic
#802172 #728021 #217280
tetradic
#802172 #805F21 #21802F #214380
square
#802172 #805F21 #21802F #214380
split-complementary
#802172 #438021 #21805F
monochromatic
#1F081B #4F1447 #802172 #B12E9D #D14BBD

Accessibility & contrast

On white

8.83
#802172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#802172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802172
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802172#FFFFFF#000000##FFFFFF
##8021721.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204174
Deuteranopia (green-blind)
#424F70
Tritanopia (blue-blind)
#862947
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #802172;
/* rgb */ color: rgb(128, 33, 114);
/* oklch */ color: oklch(43.1% 0.158 334.6);
Tailwind
colors: {
  custom: {
    50: '#a8669b',
    500: '#802172',
    950: '#000000',
  },
}
SCSS
$custom: #802172;
$custom-light: #a8669b;
$custom-dark: #000000;
JSON
{
  "hex": "#802172",
  "rgb": {
    "r": 128,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 308.842,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43091,
    "c": 0.15831,
    "h": 334.6
  },
  "luminance": 0.06892
}

Semantic roles & 50–950 ramp

primary
#802172
secondary
#4AB35A
accent
#E25D46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #802172

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

Preview Lab → · Contrast checker → · Palette generator →

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