#802F7E#802F7E

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

Color values

HEX#802F7E
RGBrgb(128, 47, 126)
HSLhsl(301, 46%, 34%)
HSVhsv(301, 63%, 50%)
CMYKcmyk(0%, 63.3%, 1.6%, 49.8%)
CIE-LABlab(34.25, 45.46, -28.14)
CIE-LCHlch(34.25, 53.47, 328.24°)
OKLaboklab(45.25% 0.1275 -0.0775)
OKLCHoklch(45.25% 0.149 328.7)
XYZxyz(13.6843, 8.1295, 20.5830)
Luminance0.0813 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802F7E #2F8031
analogous
#5A2F80 #802F7E #802F56
triadic
#802F7E #7E802F #2F7E80
tetradic
#802F7E #805A2F #2F8031 #2F5680
square
#802F7E #805A2F #2F8031 #2F5680
split-complementary
#802F7E #56802F #2F805A
monochromatic
#260E26 #531F52 #802F7E #AD3FAA #C663C3

Accessibility & contrast

On white

8.00
#802F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#802F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802F7E
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802F7E#FFFFFF#000000##FFFFFF
##802F7E1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274A80
Deuteranopia (green-blind)
#43547C
Tritanopia (blue-blind)
#843952
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #802f7e;
/* rgb */ color: rgb(128, 47, 126);
/* oklch */ color: oklch(45.2% 0.149 328.7);
Tailwind
colors: {
  custom: {
    50: '#a76da3',
    500: '#802f7e',
    950: '#000000',
  },
}
SCSS
$custom: #802f7e;
$custom-light: #a76da3;
$custom-dark: #000000;
JSON
{
  "hex": "#802f7e",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 301.481,
    "s": 46.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45245,
    "c": 0.1492,
    "h": 328.7
  },
  "luminance": 0.08129
}

Semantic roles & 50–950 ramp

primary
#802F7E
secondary
#5EAD60
accent
#D65552
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #802F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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