#802997#802997

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

Color values

HEX#802997
RGBrgb(128, 41, 151)
HSLhsl(287, 57%, 38%)
HSVhsv(287, 73%, 59%)
CMYKcmyk(15.2%, 72.8%, 0%, 40.8%)
CIE-LABlab(34.82, 52.81, -42.65)
CIE-LCHlch(34.82, 67.88, 321.08°)
OKLaboklab(46.14% 0.1345 -0.1197)
OKLCHoklch(46.14% 0.18 318.3)
XYZxyz(15.2802, 8.4101, 30.0906)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802997 #409729
analogous
#492997 #802997 #972977
triadic
#802997 #978029 #299780
tetradic
#802997 #974929 #409729 #297797
square
#802997 #974929 #409729 #297797
split-complementary
#802997 #779729 #299749
monochromatic
#2E0F37 #571C67 #802997 #A936C7 #BE65D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##802997#FFFFFF#000000##FFFFFF
##8029971.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)
#004C9A
Deuteranopia (green-blind)
#2E5594
Tritanopia (blue-blind)
#7F3F5D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #802997;
/* rgb */ color: rgb(128, 41, 151);
/* oklch */ color: oklch(46.1% 0.180 318.3);
Tailwind
colors: {
  custom: {
    50: '#a86bb6',
    500: '#802997',
    950: '#000000',
  },
}
SCSS
$custom: #802997;
$custom-light: #a86bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#802997",
  "rgb": {
    "r": 128,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 287.455,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.46135,
    "c": 0.18004,
    "h": 318.3
  },
  "luminance": 0.08409
}

Semantic roles & 50–950 ramp

primary
#802997
secondary
#74BB61
accent
#E14767
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802997

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

Preview Lab → · Contrast checker → · Palette generator →

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