#802080#802080

#802080 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.8% C 0.171 H 328.0°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#802080
RGBrgb(128, 32, 128)
HSLhsl(300, 60%, 31%)
HSVhsv(300, 75%, 50%)
CMYKcmyk(0%, 75%, 0%, 49.8%)
CIE-LABlab(32.22, 51.85, -32.61)
CIE-LCHlch(32.22, 61.25, 327.83°)
OKLaboklab(43.81% 0.1447 -0.0903)
OKLCHoklch(43.81% 0.171 328)
XYZxyz(13.3147, 7.1817, 21.1028)
Luminance0.0718 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802080 #208020
analogous
#502080 #802080 #802050
triadic
#802080 #808020 #208080
tetradic
#802080 #805020 #208020 #205080
square
#802080 #805020 #208020 #205080
split-complementary
#802080 #508020 #208050
monochromatic
#1E081E #4F144F #802080 #B12CB1 #D149D1

Accessibility & contrast

On white

8.62
#802080 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#802080 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802080
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802080#FFFFFF#000000##FFFFFF
##8020801.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4483
Deuteranopia (green-blind)
#3A507E
Tritanopia (blue-blind)
#842F4E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #802080;
/* rgb */ color: rgb(128, 32, 128);
/* oklch */ color: oklch(43.8% 0.171 328.0);
Tailwind
colors: {
  custom: {
    50: '#a866a5',
    500: '#802080',
    950: '#000000',
  },
}
SCSS
$custom: #802080;
$custom-light: #a866a5;
$custom-dark: #000000;
JSON
{
  "hex": "#802080",
  "rgb": {
    "r": 128,
    "g": 32,
    "b": 128
  },
  "hsl": {
    "h": 300,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43814,
    "c": 0.17055,
    "h": 328
  },
  "luminance": 0.07181
}

Semantic roles & 50–950 ramp

primary
#802080
secondary
#49B349
accent
#E34545
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #802080

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

Preview Lab → · Contrast checker → · Palette generator →

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