#802A7A#802A7A

#802A7A is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.4% C 0.153 H 330.7°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#802A7A
RGBrgb(128, 42, 122)
HSLhsl(304, 51%, 33%)
HSVhsv(304, 67%, 50%)
CMYKcmyk(0%, 67.2%, 4.7%, 49.8%)
CIE-LABlab(33.25, 46.94, -27.22)
CIE-LCHlch(33.25, 54.27, 329.89°)
OKLaboklab(44.45% 0.1334 -0.0748)
OKLCHoklch(44.45% 0.153 330.7)
XYZxyz(13.2428, 7.6512, 19.1879)
Luminance0.0765 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802A7A #2A8030
analogous
#5B2A80 #802A7A #802A4F
triadic
#802A7A #7A802A #2A7A80
tetradic
#802A7A #805B2A #2A8030 #2A4F80
square
#802A7A #805B2A #2A8030 #2A4F80
split-complementary
#802A7A #4F802A #2A805B
monochromatic
#240C22 #521B4E #802A7A #AE39A6 #C95BC2

Accessibility & contrast

On white

8.30
#802A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#802A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802A7A
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802A7A#FFFFFF#000000##FFFFFF
##802A7A1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24477C
Deuteranopia (green-blind)
#425278
Tritanopia (blue-blind)
#85334E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #802a7a;
/* rgb */ color: rgb(128, 42, 122);
/* oklch */ color: oklch(44.4% 0.153 330.7);
Tailwind
colors: {
  custom: {
    50: '#a86ba1',
    500: '#802a7a',
    950: '#000000',
  },
}
SCSS
$custom: #802a7a;
$custom-light: #a86ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#802a7a",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 122
  },
  "hsl": {
    "h": 304.186,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44446,
    "c": 0.15296,
    "h": 330.7
  },
  "luminance": 0.0765
}

Semantic roles & 50–950 ramp

primary
#802A7A
secondary
#57AF5D
accent
#DA584E
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #802A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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