#802197#802197

#802197 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.189 H 318.8°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#802197
RGBrgb(128, 33, 151)
HSLhsl(288, 64%, 36%)
HSVhsv(288, 78%, 59%)
CMYKcmyk(15.2%, 78.1%, 0%, 40.8%)
CIE-LABlab(33.80, 55.74, -44.29)
CIE-LCHlch(33.80, 71.19, 321.53°)
OKLaboklab(45.41% 0.1421 -0.1245)
OKLCHoklch(45.41% 0.189 318.8)
XYZxyz(15.0311, 7.9120, 30.0076)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802197 #389721
analogous
#452197 #802197 #972173
triadic
#802197 #978021 #219780
tetradic
#802197 #974521 #389721 #217397
square
#802197 #974521 #389721 #217397
split-complementary
#802197 #739721 #219745
monochromatic
#2B0B33 #551665 #802197 #AB2CC9 #C158DA

Accessibility & contrast

On white

8.13
#802197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#802197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802197
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802197#FFFFFF#000000##FFFFFF
##8021971.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#295294
Tritanopia (blue-blind)
#803A5B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #802197;
/* rgb */ color: rgb(128, 33, 151);
/* oklch */ color: oklch(45.4% 0.189 318.8);
Tailwind
colors: {
  custom: {
    50: '#a968b6',
    500: '#802197',
    950: '#000000',
  },
}
SCSS
$custom: #802197;
$custom-light: #a968b6;
$custom-dark: #000000;
JSON
{
  "hex": "#802197",
  "rgb": {
    "r": 128,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 288.305,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45408,
    "c": 0.18893,
    "h": 318.8
  },
  "luminance": 0.07911
}

Semantic roles & 50–950 ramp

primary
#802197
secondary
#6ABE55
accent
#E74161
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802197

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

Preview Lab → · Contrast checker → · Palette generator →

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