#802F7D#802F7D

#802F7D is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.2% C 0.148 H 329.2°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#802F7D
RGBrgb(128, 47, 125)
HSLhsl(302, 46%, 34%)
HSVhsv(302, 63%, 50%)
CMYKcmyk(0%, 63.3%, 2.3%, 49.8%)
CIE-LABlab(34.20, 45.28, -27.60)
CIE-LCHlch(34.20, 53.03, 328.63°)
OKLaboklab(45.19% 0.1274 -0.076)
OKLCHoklch(45.19% 0.148 329.2)
XYZxyz(13.6201, 8.1038, 20.2449)
Luminance0.0810 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802F7D #2F8032
analogous
#5B2F80 #802F7D #802F55
triadic
#802F7D #7D802F #2F7D80
tetradic
#802F7D #805B2F #2F8032 #2F5580
square
#802F7D #805B2F #2F8032 #2F5580
split-complementary
#802F7D #55802F #2F805B
monochromatic
#260E26 #531F51 #802F7D #AD3FA9 #C663C2

Accessibility & contrast

On white

8.01
#802F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#802F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802F7D
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802F7D#FFFFFF#000000##FFFFFF
##802F7D1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28497F
Deuteranopia (green-blind)
#44547B
Tritanopia (blue-blind)
#843851
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #802f7d;
/* rgb */ color: rgb(128, 47, 125);
/* oklch */ color: oklch(45.2% 0.148 329.2);
Tailwind
colors: {
  custom: {
    50: '#a76da3',
    500: '#802f7d',
    950: '#000000',
  },
}
SCSS
$custom: #802f7d;
$custom-light: #a76da3;
$custom-dark: #000000;
JSON
{
  "hex": "#802f7d",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 302.222,
    "s": 46.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.4519,
    "c": 0.14831,
    "h": 329.2
  },
  "luminance": 0.08103
}

Semantic roles & 50–950 ramp

primary
#802F7D
secondary
#5EAD61
accent
#D65752
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #802F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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