#802297#802297

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

Color values

HEX#802297
RGBrgb(128, 34, 151)
HSLhsl(288, 63%, 36%)
HSVhsv(288, 77%, 59%)
CMYKcmyk(15.2%, 77.5%, 0%, 40.8%)
CIE-LABlab(33.92, 55.40, -44.10)
CIE-LCHlch(33.92, 70.81, 321.48°)
OKLaboklab(45.49% 0.1412 -0.1239)
OKLCHoklch(45.49% 0.188 318.7)
XYZxyz(15.0593, 7.9683, 30.0170)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802297 #399722
analogous
#462297 #802297 #972274
triadic
#802297 #978022 #229780
tetradic
#802297 #974622 #399722 #227497
square
#802297 #974622 #399722 #227497
split-complementary
#802297 #749722 #229746
monochromatic
#2B0C33 #561765 #802297 #AA2DC9 #C15ADA

Accessibility & contrast

On white

8.10
#802297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#802297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802297
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802297#FFFFFF#000000##FFFFFF
##8022971.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #802297;
/* rgb */ color: rgb(128, 34, 151);
/* oklch */ color: oklch(45.5% 0.188 318.7);
Tailwind
colors: {
  custom: {
    50: '#a968b6',
    500: '#802297',
    950: '#000000',
  },
}
SCSS
$custom: #802297;
$custom-light: #a968b6;
$custom-dark: #000000;
JSON
{
  "hex": "#802297",
  "rgb": {
    "r": 128,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 288.205,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45491,
    "c": 0.1879,
    "h": 318.7
  },
  "luminance": 0.07968
}

Semantic roles & 50–950 ramp

primary
#802297
secondary
#6BBE57
accent
#E64262
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802297

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

Preview Lab → · Contrast checker → · Palette generator →

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