#802198#802198

#802198 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.190 H 318.4°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#802198
RGBrgb(128, 33, 152)
HSLhsl(288, 64%, 36%)
HSVhsv(288, 78%, 60%)
CMYKcmyk(15.8%, 78.3%, 0%, 40.4%)
CIE-LABlab(33.87, 55.93, -44.79)
CIE-LCHlch(33.87, 71.66, 321.31°)
OKLaboklab(45.48% 0.142 -0.1259)
OKLCHoklch(45.48% 0.19 318.4)
XYZxyz(15.1127, 7.9446, 30.4371)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802198 #399821
analogous
#452198 #802198 #982175
triadic
#802198 #988021 #219880
tetradic
#802198 #984521 #399821 #217598
square
#802198 #984521 #399821 #217598
split-complementary
#802198 #759821 #219845
monochromatic
#2B0B33 #561666 #802198 #AA2CCA #C159DB

Accessibility & contrast

On white

8.11
#802198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#802198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802198
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802198#FFFFFF#000000##FFFFFF
##8021981.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#285395
Tritanopia (blue-blind)
#7F3B5C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #802198;
/* rgb */ color: rgb(128, 33, 152);
/* oklch */ color: oklch(45.5% 0.190 318.4);
Tailwind
colors: {
  custom: {
    50: '#a968b7',
    500: '#802198',
    950: '#000000',
  },
}
SCSS
$custom: #802198;
$custom-light: #a968b7;
$custom-dark: #000000;
JSON
{
  "hex": "#802198",
  "rgb": {
    "r": 128,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 287.899,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45478,
    "c": 0.1898,
    "h": 318.4
  },
  "luminance": 0.07944
}

Semantic roles & 50–950 ramp

primary
#802198
secondary
#6BBF56
accent
#E74062
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802198

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

Preview Lab → · Contrast checker → · Palette generator →

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