#802298#802298

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

Color values

HEX#802298
RGBrgb(128, 34, 152)
HSLhsl(288, 63%, 36%)
HSVhsv(288, 78%, 60%)
CMYKcmyk(15.8%, 77.6%, 0%, 40.4%)
CIE-LABlab(33.98, 55.59, -44.60)
CIE-LCHlch(33.98, 71.27, 321.26°)
OKLaboklab(45.56% 0.1411 -0.1254)
OKLCHoklch(45.56% 0.189 318.4)
XYZxyz(15.1408, 8.0010, 30.4465)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802298 #3A9822
analogous
#452298 #802298 #982275
triadic
#802298 #988022 #229880
tetradic
#802298 #984522 #3A9822 #227598
square
#802298 #984522 #3A9822 #227598
split-complementary
#802298 #759822 #229845
monochromatic
#2C0C34 #561766 #802298 #AA2DCA #C05ADA

Accessibility & contrast

On white

8.08
#802298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#802298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802298
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802298#FFFFFF#000000##FFFFFF
##8022981.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.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: #802298;
/* rgb */ color: rgb(128, 34, 152);
/* oklch */ color: oklch(45.6% 0.189 318.4);
Tailwind
colors: {
  custom: {
    50: '#a968b7',
    500: '#802298',
    950: '#000000',
  },
}
SCSS
$custom: #802298;
$custom-light: #a968b7;
$custom-dark: #000000;
JSON
{
  "hex": "#802298",
  "rgb": {
    "r": 128,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 287.797,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45561,
    "c": 0.18878,
    "h": 318.4
  },
  "luminance": 0.08
}

Semantic roles & 50–950 ramp

primary
#802298
secondary
#6CBE57
accent
#E64163
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802298

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

Preview Lab → · Contrast checker → · Palette generator →

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