#802C9B#802C9B

#802C9B is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.7% C 0.180 H 316.7°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#802C9B
RGBrgb(128, 44, 155)
HSLhsl(285, 56%, 39%)
HSVhsv(285, 72%, 61%)
CMYKcmyk(17.4%, 71.6%, 0%, 39.2%)
CIE-LABlab(35.51, 52.41, -43.97)
CIE-LCHlch(35.51, 68.41, 320.00°)
OKLaboklab(46.71% 0.131 -0.1236)
OKLCHoklch(46.71% 0.18 316.7)
XYZxyz(15.7183, 8.7578, 31.8664)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802C9B #479B2C
analogous
#482C9B #802C9B #9B2C7F
triadic
#802C9B #9B802C #2C9B80
tetradic
#802C9B #9B482C #479B2C #2C7F9B
square
#802C9B #9B482C #479B2C #2C7F9B
split-complementary
#802C9B #7F9B2C #2C9B48
monochromatic
#31113C #591E6B #802C9B #A63CC8 #BC6CD5

Accessibility & contrast

On white

7.63
#802C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#802C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802C9B
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802C9B#FFFFFF#000000##FFFFFF
##802C9B1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9E
Deuteranopia (green-blind)
#2D5698
Tritanopia (blue-blind)
#7F4260
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #802c9b;
/* rgb */ color: rgb(128, 44, 155);
/* oklch */ color: oklch(46.7% 0.180 316.7);
Tailwind
colors: {
  custom: {
    50: '#a86db9',
    500: '#802c9b',
    950: '#000000',
  },
}
SCSS
$custom: #802c9b;
$custom-light: #a86db9;
$custom-dark: #000000;
JSON
{
  "hex": "#802c9b",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 155
  },
  "hsl": {
    "h": 285.405,
    "s": 55.779,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46712,
    "c": 0.18011,
    "h": 316.7
  },
  "luminance": 0.08757
}

Semantic roles & 50–950 ramp

primary
#802C9B
secondary
#7BBC67
accent
#DF496D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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