#802F9C#802F9C

#802F9C is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.177 H 316.1°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#802F9C
RGBrgb(128, 47, 156)
HSLhsl(285, 54%, 40%)
HSVhsv(285, 70%, 61%)
CMYKcmyk(17.9%, 69.9%, 0%, 38.8%)
CIE-LABlab(36.03, 51.35, -43.75)
CIE-LCHlch(36.03, 67.46, 319.57°)
OKLaboklab(47.1% 0.1277 -0.123)
OKLCHoklch(47.1% 0.177 316.1)
XYZxyz(15.9184, 9.0231, 32.3492)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802F9C #4B9C2F
analogous
#492F9C #802F9C #9C2F82
triadic
#802F9C #9C802F #2F9C80
tetradic
#802F9C #9C492F #4B9C2F #2F829C
square
#802F9C #9C492F #4B9C2F #2F829C
split-complementary
#802F9C #829C2F #2F9C49
monochromatic
#33133E #59216D #802F9C #A442C6 #BB71D4

Accessibility & contrast

On white

7.49
#802F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#802F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802F9C
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802F9C#FFFFFF#000000##FFFFFF
##802F9C1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509F
Deuteranopia (green-blind)
#2F5799
Tritanopia (blue-blind)
#7E4462
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802f9c;
/* rgb */ color: rgb(128, 47, 156);
/* oklch */ color: oklch(47.1% 0.177 316.1);
Tailwind
colors: {
  custom: {
    50: '#a86eba',
    500: '#802f9c',
    950: '#000000',
  },
}
SCSS
$custom: #802f9c;
$custom-light: #a86eba;
$custom-dark: #000000;
JSON
{
  "hex": "#802f9c",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 284.587,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47101,
    "c": 0.17725,
    "h": 316.1
  },
  "luminance": 0.09023
}

Semantic roles & 50–950 ramp

primary
#802F9C
secondary
#80BC6B
accent
#DD4B70
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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