#802097#802097

#802097 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.190 H 318.8°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#802097
RGBrgb(128, 32, 151)
HSLhsl(288, 65%, 36%)
HSVhsv(288, 79%, 59%)
CMYKcmyk(15.2%, 78.8%, 0%, 40.8%)
CIE-LABlab(33.68, 56.07, -44.48)
CIE-LCHlch(33.68, 71.57, 321.58°)
OKLaboklab(45.33% 0.143 -0.125)
OKLCHoklch(45.33% 0.19 318.8)
XYZxyz(15.0038, 7.8573, 29.9985)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802097 #379720
analogous
#442097 #802097 #972072
triadic
#802097 #978020 #209780
tetradic
#802097 #974420 #379720 #207297
square
#802097 #974420 #379720 #207297
split-complementary
#802097 #729720 #209744
monochromatic
#2A0B32 #551564 #802097 #AB2BC9 #C256DB

Accessibility & contrast

On white

8.17
#802097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#802097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802097
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802097#FFFFFF#000000##FFFFFF
##8020971.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#285294
Tritanopia (blue-blind)
#803A5B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #802097;
/* rgb */ color: rgb(128, 32, 151);
/* oklch */ color: oklch(45.3% 0.190 318.8);
Tailwind
colors: {
  custom: {
    50: '#a967b6',
    500: '#802097',
    950: '#000000',
  },
}
SCSS
$custom: #802097;
$custom-light: #a967b6;
$custom-dark: #000000;
JSON
{
  "hex": "#802097",
  "rgb": {
    "r": 128,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 288.403,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45327,
    "c": 0.18994,
    "h": 318.8
  },
  "luminance": 0.07857
}

Semantic roles & 50–950 ramp

primary
#802097
secondary
#69BF54
accent
#E84060
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802097

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

Preview Lab → · Contrast checker → · Palette generator →

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