#802F8F#802F8F

#802F8F is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.3% C 0.165 H 321.0°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#802F8F
RGBrgb(128, 47, 143)
HSLhsl(291, 51%, 37%)
HSVhsv(291, 67%, 56%)
CMYKcmyk(10.5%, 67.1%, 0%, 43.9%)
CIE-LABlab(35.21, 48.70, -37.13)
CIE-LCHlch(35.21, 61.24, 322.68°)
OKLaboklab(46.26% 0.1282 -0.1036)
OKLCHoklch(46.26% 0.165 321)
XYZxyz(14.8760, 8.6061, 26.8589)
Luminance0.0861 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802F8F #3E8F2F
analogous
#502F8F #802F8F #8F2F6E
triadic
#802F8F #8F802F #2F8F80
tetradic
#802F8F #8F502F #3E8F2F #2F6E8F
square
#802F8F #8F502F #3E8F2F #2F6E8F
split-complementary
#802F8F #6E8F2F #2F8F50
monochromatic
#2E1133 #572061 #802F8F #A93EBD #BF6ACE

Accessibility & contrast

On white

7.72
#802F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#802F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802F8F
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802F8F#FFFFFF#000000##FFFFFF
##802F8F1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134D92
Deuteranopia (green-blind)
#39568D
Tritanopia (blue-blind)
#813F5B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #802f8f;
/* rgb */ color: rgb(128, 47, 143);
/* oklch */ color: oklch(46.3% 0.165 321.0);
Tailwind
colors: {
  custom: {
    50: '#a86eb0',
    500: '#802f8f',
    950: '#000000',
  },
}
SCSS
$custom: #802f8f;
$custom-light: #a86eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#802f8f",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 290.625,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.46255,
    "c": 0.16482,
    "h": 321
  },
  "luminance": 0.08605
}

Semantic roles & 50–950 ramp

primary
#802F8F
secondary
#71B565
accent
#DA4E64
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #802F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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