#802B7B#802B7B

#802B7B is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.6% C 0.152 H 330.2°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#802B7B
RGBrgb(128, 43, 123)
HSLhsl(304, 50%, 34%)
HSVhsv(304, 66%, 50%)
CMYKcmyk(0%, 66.4%, 3.9%, 49.8%)
CIE-LABlab(33.45, 46.69, -27.52)
CIE-LCHlch(33.45, 54.20, 329.48°)
OKLaboklab(44.61% 0.1323 -0.0757)
OKLCHoklch(44.61% 0.152 330.2)
XYZxyz(13.3410, 7.7480, 19.5279)
Luminance0.0775 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802B7B #2B8030
analogous
#5A2B80 #802B7B #802B50
triadic
#802B7B #7B802B #2B7B80
tetradic
#802B7B #805A2B #2B8030 #2B5080
square
#802B7B #805A2B #2B8030 #2B5080
split-complementary
#802B7B #50802B #2B805A
monochromatic
#240C23 #521C4F #802B7B #AE3AA7 #C95DC2

Accessibility & contrast

On white

8.24
#802B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802B7B
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802B7B#FFFFFF#000000##FFFFFF
##802B7B1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24477D
Deuteranopia (green-blind)
#425379
Tritanopia (blue-blind)
#85344F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #802b7b;
/* rgb */ color: rgb(128, 43, 123);
/* oklch */ color: oklch(44.6% 0.152 330.2);
Tailwind
colors: {
  custom: {
    50: '#a86ba1',
    500: '#802b7b',
    950: '#000000',
  },
}
SCSS
$custom: #802b7b;
$custom-light: #a86ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#802b7b",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 123
  },
  "hsl": {
    "h": 303.529,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44613,
    "c": 0.1524,
    "h": 330.2
  },
  "luminance": 0.07747
}

Semantic roles & 50–950 ramp

primary
#802B7B
secondary
#58AE5D
accent
#D9574F
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #802B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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