#802398#802398

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

Color values

HEX#802398
RGBrgb(128, 35, 152)
HSLhsl(288, 63%, 37%)
HSVhsv(288, 77%, 60%)
CMYKcmyk(15.8%, 77%, 0%, 40.4%)
CIE-LABlab(34.11, 55.25, -44.41)
CIE-LCHlch(34.11, 70.88, 321.21°)
OKLaboklab(45.65% 0.1402 -0.1248)
OKLCHoklch(45.65% 0.188 318.3)
XYZxyz(15.1698, 8.0590, 30.4561)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802398 #3B9823
analogous
#452398 #802398 #982376
triadic
#802398 #988023 #239880
tetradic
#802398 #984523 #3B9823 #237698
square
#802398 #984523 #3B9823 #237698
split-complementary
#802398 #769823 #239845
monochromatic
#2C0C35 #561866 #802398 #AA2ECA #C05CD9

Accessibility & contrast

On white

8.04
#802398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#802398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802398
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802398#FFFFFF#000000##FFFFFF
##8023981.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#295395
Tritanopia (blue-blind)
#7F3C5C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #802398;
/* rgb */ color: rgb(128, 35, 152);
/* oklch */ color: oklch(45.6% 0.188 318.3);
Tailwind
colors: {
  custom: {
    50: '#a969b7',
    500: '#802398',
    950: '#000000',
  },
}
SCSS
$custom: #802398;
$custom-light: #a969b7;
$custom-dark: #000000;
JSON
{
  "hex": "#802398",
  "rgb": {
    "r": 128,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 287.692,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45646,
    "c": 0.18773,
    "h": 318.3
  },
  "luminance": 0.08058
}

Semantic roles & 50–950 ramp

primary
#802398
secondary
#6EBE59
accent
#E64264
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802398

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

Preview Lab → · Contrast checker → · Palette generator →

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