#802899#802899

#802899 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.183 H 317.7°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#802899
RGBrgb(128, 40, 153)
HSLhsl(287, 59%, 38%)
HSVhsv(287, 74%, 60%)
CMYKcmyk(16.3%, 73.9%, 0%, 40%)
CIE-LABlab(34.82, 53.60, -43.87)
CIE-LCHlch(34.82, 69.27, 320.70°)
OKLaboklab(46.17% 0.1353 -0.1233)
OKLCHoklch(46.17% 0.183 317.7)
XYZxyz(15.4098, 8.4074, 30.9419)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802899 #419928
analogous
#482899 #802899 #992879
triadic
#802899 #998028 #289980
tetradic
#802899 #994828 #419928 #287999
square
#802899 #994828 #419928 #287999
split-complementary
#802899 #799928 #289948
monochromatic
#2F0F38 #571B68 #802899 #A935CA #BD65D7

Accessibility & contrast

On white

7.83
#802899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#802899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802899
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802899#FFFFFF#000000##FFFFFF
##8028991.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9C
Deuteranopia (green-blind)
#2C5596
Tritanopia (blue-blind)
#7F3F5E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #802899;
/* rgb */ color: rgb(128, 40, 153);
/* oklch */ color: oklch(46.2% 0.183 317.7);
Tailwind
colors: {
  custom: {
    50: '#a86bb8',
    500: '#802899',
    950: '#000000',
  },
}
SCSS
$custom: #802899;
$custom-light: #a86bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#802899",
  "rgb": {
    "r": 128,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 286.726,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46173,
    "c": 0.18306,
    "h": 317.7
  },
  "luminance": 0.08407
}

Semantic roles & 50–950 ramp

primary
#802899
secondary
#75BD60
accent
#E24668
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802899

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

Preview Lab → · Contrast checker → · Palette generator →

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