#802498#802498

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

Color values

HEX#802498
RGBrgb(128, 36, 152)
HSLhsl(288, 62%, 37%)
HSVhsv(288, 76%, 60%)
CMYKcmyk(15.8%, 76.3%, 0%, 40.4%)
CIE-LABlab(34.23, 54.89, -44.21)
CIE-LCHlch(34.23, 70.48, 321.15°)
OKLaboklab(45.73% 0.1393 -0.1243)
OKLCHoklch(45.73% 0.187 318.3)
XYZxyz(15.1997, 8.1186, 30.4661)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802498 #3C9824
analogous
#462498 #802498 #982476
triadic
#802498 #988024 #249880
tetradic
#802498 #984624 #3C9824 #247698
square
#802498 #984624 #3C9824 #247698
split-complementary
#802498 #769824 #249846
monochromatic
#2D0D35 #561867 #802498 #AA30C9 #BF5ED9

Accessibility & contrast

On white

8.00
#802498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802498
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802498#FFFFFF#000000##FFFFFF
##8024981.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#2A5395
Tritanopia (blue-blind)
#7F3C5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #802498;
/* rgb */ color: rgb(128, 36, 152);
/* oklch */ color: oklch(45.7% 0.187 318.3);
Tailwind
colors: {
  custom: {
    50: '#a969b7',
    500: '#802498',
    950: '#000000',
  },
}
SCSS
$custom: #802498;
$custom-light: #a969b7;
$custom-dark: #000000;
JSON
{
  "hex": "#802498",
  "rgb": {
    "r": 128,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 287.586,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45734,
    "c": 0.18666,
    "h": 318.3
  },
  "luminance": 0.08118
}

Semantic roles & 50–950 ramp

primary
#802498
secondary
#6FBE5A
accent
#E54364
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802498

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

Preview Lab → · Contrast checker → · Palette generator →

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