#802A7D#802A7D

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

Color values

HEX#802A7D
RGBrgb(128, 42, 125)
HSLhsl(302, 51%, 33%)
HSVhsv(302, 67%, 50%)
CMYKcmyk(0%, 67.2%, 2.3%, 49.8%)
CIE-LABlab(33.41, 47.47, -28.85)
CIE-LCHlch(33.41, 55.55, 328.71°)
OKLaboklab(44.62% 0.1336 -0.0795)
OKLCHoklch(44.62% 0.156 329.2)
XYZxyz(13.4316, 7.7267, 20.1820)
Luminance0.0773 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802A7D #2A802D
analogous
#582A80 #802A7D #802A52
triadic
#802A7D #7D802A #2A7D80
tetradic
#802A7D #80582A #2A802D #2A5280
square
#802A7D #80582A #2A802D #2A5280
split-complementary
#802A7D #52802A #2A8058
monochromatic
#240C23 #521B50 #802A7D #AE39AA #C95BC5

Accessibility & contrast

On white

8.25
#802A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802A7D
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802A7D#FFFFFF#000000##FFFFFF
##802A7D1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21477F
Deuteranopia (green-blind)
#41537B
Tritanopia (blue-blind)
#843450
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #802a7d;
/* rgb */ color: rgb(128, 42, 125);
/* oklch */ color: oklch(44.6% 0.156 329.2);
Tailwind
colors: {
  custom: {
    50: '#a86ba3',
    500: '#802a7d',
    950: '#000000',
  },
}
SCSS
$custom: #802a7d;
$custom-light: #a86ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#802a7d",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 302.093,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44616,
    "c": 0.15551,
    "h": 329.2
  },
  "luminance": 0.07726
}

Semantic roles & 50–950 ramp

primary
#802A7D
secondary
#57AF5A
accent
#DA534E
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #802A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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