#802A7F#802A7F

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

Color values

HEX#802A7F
RGBrgb(128, 42, 127)
HSLhsl(301, 51%, 33%)
HSVhsv(301, 67%, 50%)
CMYKcmyk(0%, 67.2%, 0.8%, 49.8%)
CIE-LABlab(33.52, 47.83, -29.93)
CIE-LCHlch(33.52, 56.42, 327.97°)
OKLaboklab(44.73% 0.1338 -0.0826)
OKLCHoklch(44.73% 0.157 328.3)
XYZxyz(13.5607, 7.7784, 20.8617)
Luminance0.0778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802A7F #2A802B
analogous
#562A80 #802A7F #802A54
triadic
#802A7F #7F802A #2A7F80
tetradic
#802A7F #80562A #2A802B #2A5480
square
#802A7F #80562A #2A802B #2A5480
split-complementary
#802A7F #54802A #2A8056
monochromatic
#240C24 #521B51 #802A7F #AE39AD #C95BC8

Accessibility & contrast

On white

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

On black

2.56
#802A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##802A7F#FFFFFF#000000##FFFFFF
##802A7F1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4881
Deuteranopia (green-blind)
#40537D
Tritanopia (blue-blind)
#843551
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #802a7f;
/* rgb */ color: rgb(128, 42, 127);
/* oklch */ color: oklch(44.7% 0.157 328.3);
Tailwind
colors: {
  custom: {
    50: '#a86ba4',
    500: '#802a7f',
    950: '#000000',
  },
}
SCSS
$custom: #802a7f;
$custom-light: #a86ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#802a7f",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 300.698,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44731,
    "c": 0.15723,
    "h": 328.3
  },
  "luminance": 0.07777
}

Semantic roles & 50–950 ramp

primary
#802A7F
secondary
#57AF58
accent
#DA4F4E
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #802A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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