#802397#802397

#802397 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.187 H 318.7°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#802397
RGBrgb(128, 35, 151)
HSLhsl(288, 62%, 36%)
HSVhsv(288, 77%, 59%)
CMYKcmyk(15.2%, 76.8%, 0%, 40.8%)
CIE-LABlab(34.04, 55.05, -43.91)
CIE-LCHlch(34.04, 70.42, 321.42°)
OKLaboklab(45.58% 0.1403 -0.1234)
OKLCHoklch(45.58% 0.187 318.7)
XYZxyz(15.0883, 8.0263, 30.0266)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802397 #3A9723
analogous
#462397 #802397 #972374
triadic
#802397 #978023 #239780
tetradic
#802397 #974623 #3A9723 #237497
square
#802397 #974623 #3A9723 #237497
split-complementary
#802397 #749723 #239746
monochromatic
#2C0C34 #561765 #802397 #AA2FC9 #C05BD9

Accessibility & contrast

On white

8.06
#802397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802397
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802397#FFFFFF#000000##FFFFFF
##8023971.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #802397;
/* rgb */ color: rgb(128, 35, 151);
/* oklch */ color: oklch(45.6% 0.187 318.7);
Tailwind
colors: {
  custom: {
    50: '#a969b6',
    500: '#802397',
    950: '#000000',
  },
}
SCSS
$custom: #802397;
$custom-light: #a969b6;
$custom-dark: #000000;
JSON
{
  "hex": "#802397",
  "rgb": {
    "r": 128,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 288.103,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45577,
    "c": 0.18685,
    "h": 318.7
  },
  "luminance": 0.08026
}

Semantic roles & 50–950 ramp

primary
#802397
secondary
#6CBE58
accent
#E54263
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802397

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

Preview Lab → · Contrast checker → · Palette generator →

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