#802B7C#802B7C

#802B7C is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.7% C 0.153 H 329.7°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#802B7C
RGBrgb(128, 43, 124)
HSLhsl(303, 50%, 34%)
HSVhsv(303, 66%, 50%)
CMYKcmyk(0%, 66.4%, 3.1%, 49.8%)
CIE-LABlab(33.51, 46.87, -28.07)
CIE-LCHlch(33.51, 54.63, 329.09°)
OKLaboklab(44.67% 0.1323 -0.0773)
OKLCHoklch(44.67% 0.153 329.7)
XYZxyz(13.4040, 7.7731, 19.8593)
Luminance0.0777 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802B7C #2B802F
analogous
#592B80 #802B7C #802B51
triadic
#802B7C #7C802B #2B7C80
tetradic
#802B7C #80592B #2B802F #2B5180
square
#802B7C #80592B #2B802F #2B5180
split-complementary
#802B7C #51802B #2B8059
monochromatic
#240C23 #521C50 #802B7C #AE3AA8 #C95DC3

Accessibility & contrast

On white

8.22
#802B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#802B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802B7C
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802B7C#FFFFFF#000000##FFFFFF
##802B7C1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23477E
Deuteranopia (green-blind)
#42537A
Tritanopia (blue-blind)
#85354F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #802b7c;
/* rgb */ color: rgb(128, 43, 124);
/* oklch */ color: oklch(44.7% 0.153 329.7);
Tailwind
colors: {
  custom: {
    50: '#a86ba2',
    500: '#802b7c',
    950: '#000000',
  },
}
SCSS
$custom: #802b7c;
$custom-light: #a86ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#802b7c",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 124
  },
  "hsl": {
    "h": 302.824,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.4467,
    "c": 0.15325,
    "h": 329.7
  },
  "luminance": 0.07772
}

Semantic roles & 50–950 ramp

primary
#802B7C
secondary
#58AE5C
accent
#D9554F
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #802B7C

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

Preview Lab → · Contrast checker → · Palette generator →

#802B7C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva