#802497#802497

#802497 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.186 H 318.6°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#802497
RGBrgb(128, 36, 151)
HSLhsl(288, 61%, 37%)
HSVhsv(288, 76%, 59%)
CMYKcmyk(15.2%, 76.2%, 0%, 40.8%)
CIE-LABlab(34.16, 54.70, -43.71)
CIE-LCHlch(34.16, 70.02, 321.37°)
OKLaboklab(45.67% 0.1394 -0.1228)
OKLCHoklch(45.67% 0.186 318.6)
XYZxyz(15.1181, 8.0860, 30.0366)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802497 #3B9724
analogous
#472497 #802497 #972475
triadic
#802497 #978024 #249780
tetradic
#802497 #974724 #3B9724 #247597
square
#802497 #974724 #3B9724 #247597
split-complementary
#802497 #759724 #249747
monochromatic
#2C0C34 #561866 #802497 #AA30C8 #C05DD8

Accessibility & contrast

On white

8.02
#802497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#802497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802497
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802497#FFFFFF#000000##FFFFFF
##8024971.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#2B5394
Tritanopia (blue-blind)
#803C5C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #802497;
/* rgb */ color: rgb(128, 36, 151);
/* oklch */ color: oklch(45.7% 0.186 318.6);
Tailwind
colors: {
  custom: {
    50: '#a969b6',
    500: '#802497',
    950: '#000000',
  },
}
SCSS
$custom: #802497;
$custom-light: #a969b6;
$custom-dark: #000000;
JSON
{
  "hex": "#802497",
  "rgb": {
    "r": 128,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 288,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45665,
    "c": 0.18577,
    "h": 318.6
  },
  "luminance": 0.08085
}

Semantic roles & 50–950 ramp

primary
#802497
secondary
#6EBD5A
accent
#E54363
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802497

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

Preview Lab → · Contrast checker → · Palette generator →

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