#802F9A#802F9A

#802F9A is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.0% C 0.175 H 316.8°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#802F9A
RGBrgb(128, 47, 154)
HSLhsl(285, 53%, 39%)
HSVhsv(285, 69%, 60%)
CMYKcmyk(16.9%, 69.5%, 0%, 39.6%)
CIE-LABlab(35.90, 50.93, -42.74)
CIE-LCHlch(35.90, 66.49, 319.99°)
OKLaboklab(46.97% 0.1278 -0.12)
OKLCHoklch(46.97% 0.175 316.8)
XYZxyz(15.7505, 8.9559, 31.4646)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802F9A #499A2F
analogous
#4B2F9A #802F9A #9A2F7F
triadic
#802F9A #9A802F #2F9A80
tetradic
#802F9A #9A4B2F #499A2F #2F7F9A
square
#802F9A #9A4B2F #499A2F #2F7F9A
split-complementary
#802F9A #7F9A2F #2F9A4B
monochromatic
#32123C #59216B #802F9A #A541C5 #BB70D3

Accessibility & contrast

On white

7.52
#802F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#802F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802F9A
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802F9A#FFFFFF#000000##FFFFFF
##802F9A1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9D
Deuteranopia (green-blind)
#305798
Tritanopia (blue-blind)
#7F4461
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802f9a;
/* rgb */ color: rgb(128, 47, 154);
/* oklch */ color: oklch(47.0% 0.175 316.8);
Tailwind
colors: {
  custom: {
    50: '#a86eb8',
    500: '#802f9a',
    950: '#000000',
  },
}
SCSS
$custom: #802f9a;
$custom-light: #a86eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#802f9a",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 285.421,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46967,
    "c": 0.17533,
    "h": 316.8
  },
  "luminance": 0.08955
}

Semantic roles & 50–950 ramp

primary
#802F9A
secondary
#7EBB6A
accent
#DD4B6F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #802F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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