#802299#802299

#802299 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.190 H 318.0°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#802299
RGBrgb(128, 34, 153)
HSLhsl(287, 64%, 37%)
HSVhsv(287, 78%, 60%)
CMYKcmyk(16.3%, 77.8%, 0%, 40%)
CIE-LABlab(34.05, 55.79, -45.10)
CIE-LCHlch(34.05, 71.74, 321.05°)
OKLaboklab(45.63% 0.141 -0.1269)
OKLCHoklch(45.63% 0.19 318)
XYZxyz(15.2231, 8.0339, 30.8796)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802299 #3B9922
analogous
#452299 #802299 #992277
triadic
#802299 #998022 #229980
tetradic
#802299 #994522 #3B9922 #227799
square
#802299 #994522 #3B9922 #227799
split-complementary
#802299 #779922 #229945
monochromatic
#2C0C35 #561767 #802299 #AA2DCB #C05BDB

Accessibility & contrast

On white

8.06
#802299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#802299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802299
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802299#FFFFFF#000000##FFFFFF
##8022991.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9C
Deuteranopia (green-blind)
#275396
Tritanopia (blue-blind)
#7F3C5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #802299;
/* rgb */ color: rgb(128, 34, 153);
/* oklch */ color: oklch(45.6% 0.190 318.0);
Tailwind
colors: {
  custom: {
    50: '#a968b8',
    500: '#802299',
    950: '#000000',
  },
}
SCSS
$custom: #802299;
$custom-light: #a968b8;
$custom-dark: #000000;
JSON
{
  "hex": "#802299",
  "rgb": {
    "r": 128,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 287.395,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45631,
    "c": 0.18965,
    "h": 318
  },
  "luminance": 0.08033
}

Semantic roles & 50–950 ramp

primary
#802299
secondary
#6EBF58
accent
#E74164
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802299

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

Preview Lab → · Contrast checker → · Palette generator →

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