#802872#802872

#802872 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.8% C 0.149 H 334.8°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#802872
RGBrgb(128, 40, 114)
HSLhsl(310, 52%, 33%)
HSVhsv(310, 69%, 50%)
CMYKcmyk(0%, 68.8%, 10.9%, 49.8%)
CIE-LABlab(32.53, 46.42, -23.30)
CIE-LCHlch(32.53, 51.94, 333.35°)
OKLaboklab(43.79% 0.135 -0.0636)
OKLCHoklch(43.79% 0.149 334.8)
XYZxyz(12.6983, 7.3227, 16.6610)
Luminance0.0732 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802872 #288036
analogous
#622880 #802872 #802846
triadic
#802872 #728028 #287280
tetradic
#802872 #806228 #288036 #284680
square
#802872 #806228 #288036 #284680
split-complementary
#802872 #468028 #288062
monochromatic
#230B1F #511948 #802872 #AF379C #CB58B8

Accessibility & contrast

On white

8.52
#802872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#802872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802872
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802872#FFFFFF#000000##FFFFFF
##8028721.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274474
Deuteranopia (green-blind)
#455170
Tritanopia (blue-blind)
#862E49
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #802872;
/* rgb */ color: rgb(128, 40, 114);
/* oklch */ color: oklch(43.8% 0.149 334.8);
Tailwind
colors: {
  custom: {
    50: '#a8699b',
    500: '#802872',
    950: '#000000',
  },
}
SCSS
$custom: #802872;
$custom-light: #a8699b;
$custom-dark: #000000;
JSON
{
  "hex": "#802872",
  "rgb": {
    "r": 128,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 309.545,
    "s": 52.381,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43793,
    "c": 0.14921,
    "h": 334.8
  },
  "luminance": 0.07322
}

Semantic roles & 50–950 ramp

primary
#802872
secondary
#54B063
accent
#DC634C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #802872

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

Preview Lab → · Contrast checker → · Palette generator →

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