#80229D#80229D

#80229D is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.193 H 316.6°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#80229D
RGBrgb(128, 34, 157)
HSLhsl(286, 64%, 37%)
HSVhsv(286, 78%, 62%)
CMYKcmyk(18.5%, 78.3%, 0%, 38.4%)
CIE-LABlab(34.33, 56.57, -47.09)
CIE-LCHlch(34.33, 73.61, 320.23°)
OKLaboklab(45.92% 0.1404 -0.1327)
OKLCHoklch(45.92% 0.193 316.6)
XYZxyz(15.5590, 8.1682, 32.6488)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#80229D #3F9D22
analogous
#43229D #80229D #9D227C
triadic
#80229D #9D8022 #229D80
tetradic
#80229D #9D4322 #3F9D22 #227C9D
square
#80229D #9D4322 #3F9D22 #227C9D
split-complementary
#80229D #7C9D22 #229D43
monochromatic
#2E0C38 #57176B #80229D #A92DCF #BE5DDC

Accessibility & contrast

On white

7.97
#80229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#80229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #80229D
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##80229D#FFFFFF#000000##FFFFFF
##80229D1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#22539A
Tritanopia (blue-blind)
#7E3E5F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #80229d;
/* rgb */ color: rgb(128, 34, 157);
/* oklch */ color: oklch(45.9% 0.193 316.6);
Tailwind
colors: {
  custom: {
    50: '#a969bb',
    500: '#80229d',
    950: '#000000',
  },
}
SCSS
$custom: #80229d;
$custom-light: #a969bb;
$custom-dark: #000000;
JSON
{
  "hex": "#80229d",
  "rgb": {
    "r": 128,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 285.854,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45915,
    "c": 0.19317,
    "h": 316.6
  },
  "luminance": 0.08168
}

Semantic roles & 50–950 ramp

primary
#80229D
secondary
#72C15A
accent
#E74068
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #80229D

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

Preview Lab → · Contrast checker → · Palette generator →

#80229D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva