#802B9F#802B9F

#802B9F is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.9% C 0.185 H 315.3°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#802B9F
RGBrgb(128, 43, 159)
HSLhsl(284, 57%, 40%)
HSVhsv(284, 73%, 62%)
CMYKcmyk(19.5%, 73%, 0%, 37.6%)
CIE-LABlab(35.64, 53.64, -46.19)
CIE-LCHlch(35.64, 70.79, 319.26°)
OKLaboklab(46.89% 0.1316 -0.1301)
OKLCHoklch(46.89% 0.185 315.3)
XYZxyz(16.0230, 8.8207, 33.6527)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802B9F #4A9F2B
analogous
#462B9F #802B9F #9F2B84
triadic
#802B9F #9F802B #2B9F80
tetradic
#802B9F #9F462B #4A9F2B #2B849F
square
#802B9F #9F462B #4A9F2B #2B849F
split-complementary
#802B9F #849F2B #2B9F46
monochromatic
#32113F #591E6F #802B9F #A53DCA #BB6DD7

Accessibility & contrast

On white

7.60
#802B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#802B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802B9F
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802B9F#FFFFFF#000000##FFFFFF
##802B9F1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA2
Deuteranopia (green-blind)
#28569C
Tritanopia (blue-blind)
#7E4362
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802b9f;
/* rgb */ color: rgb(128, 43, 159);
/* oklch */ color: oklch(46.9% 0.185 315.3);
Tailwind
colors: {
  custom: {
    50: '#a96dbc',
    500: '#802b9f',
    950: '#000000',
  },
}
SCSS
$custom: #802b9f;
$custom-light: #a96dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#802b9f",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 159
  },
  "hsl": {
    "h": 283.966,
    "s": 57.426,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46885,
    "c": 0.18509,
    "h": 315.3
  },
  "luminance": 0.0882
}

Semantic roles & 50–950 ramp

primary
#802B9F
secondary
#7FBE67
accent
#E14770
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #802B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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