#802A7C#802A7C

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

Color values

HEX#802A7C
RGBrgb(128, 42, 124)
HSLhsl(303, 51%, 33%)
HSVhsv(303, 67%, 50%)
CMYKcmyk(0%, 67.2%, 3.1%, 49.8%)
CIE-LABlab(33.35, 47.30, -28.31)
CIE-LCHlch(33.35, 55.12, 329.10°)
OKLaboklab(44.56% 0.1336 -0.078)
OKLCHoklch(44.56% 0.155 329.7)
XYZxyz(13.3680, 7.7013, 19.8473)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802A7C #2A802E
analogous
#592A80 #802A7C #802A51
triadic
#802A7C #7C802A #2A7C80
tetradic
#802A7C #80592A #2A802E #2A5180
square
#802A7C #80592A #2A802E #2A5180
split-complementary
#802A7C #51802A #2A8059
monochromatic
#240C23 #521B4F #802A7C #AE39A9 #C95BC4

Accessibility & contrast

On white

8.27
#802A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#802A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802A7C
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802A7C#FFFFFF#000000##FFFFFF
##802A7C1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22477E
Deuteranopia (green-blind)
#41537A
Tritanopia (blue-blind)
#85344F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #802a7c;
/* rgb */ color: rgb(128, 42, 124);
/* oklch */ color: oklch(44.6% 0.155 329.7);
Tailwind
colors: {
  custom: {
    50: '#a86ba2',
    500: '#802a7c',
    950: '#000000',
  },
}
SCSS
$custom: #802a7c;
$custom-light: #a86ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#802a7c",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 302.791,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44559,
    "c": 0.15465,
    "h": 329.7
  },
  "luminance": 0.077
}

Semantic roles & 50–950 ramp

primary
#802A7C
secondary
#57AF5B
accent
#DA544E
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #802A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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