#802A8E#802A8E

#802A8E is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.171 H 321.7°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#802A8E
RGBrgb(128, 42, 142)
HSLhsl(292, 54%, 36%)
HSVhsv(292, 70%, 56%)
CMYKcmyk(9.9%, 70.4%, 0%, 44.3%)
CIE-LABlab(34.39, 50.64, -37.83)
CIE-LCHlch(34.39, 63.20, 323.24°)
OKLaboklab(45.65% 0.1339 -0.1056)
OKLCHoklch(45.65% 0.171 321.7)
XYZxyz(14.6120, 8.1989, 26.3988)
Luminance0.0820 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802A8E #388E2A
analogous
#4E2A8E #802A8E #8E2A6A
triadic
#802A8E #8E802A #2A8E80
tetradic
#802A8E #8E4E2A #388E2A #2A6A8E
square
#802A8E #8E4E2A #388E2A #2A6A8E
split-complementary
#802A8E #6A8E2A #2A8E4E
monochromatic
#2B0E30 #551C5F #802A8E #AB38BD #C162D1

Accessibility & contrast

On white

7.96
#802A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#802A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802A8E
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802A8E#FFFFFF#000000##FFFFFF
##802A8E1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064B91
Deuteranopia (green-blind)
#37548C
Tritanopia (blue-blind)
#813C59
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #802a8e;
/* rgb */ color: rgb(128, 42, 142);
/* oklch */ color: oklch(45.6% 0.171 321.7);
Tailwind
colors: {
  custom: {
    50: '#a86baf',
    500: '#802a8e',
    950: '#000000',
  },
}
SCSS
$custom: #802a8e;
$custom-light: #a86baf;
$custom-dark: #000000;
JSON
{
  "hex": "#802a8e",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 291.6,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45645,
    "c": 0.17057,
    "h": 321.7
  },
  "luminance": 0.08198
}

Semantic roles & 50–950 ramp

primary
#802A8E
secondary
#6AB65D
accent
#DE4A5F
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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