#802F9F#802F9F

#802F9F is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.180 H 315.0°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#802F9F
RGBrgb(128, 47, 159)
HSLhsl(283, 54%, 40%)
HSVhsv(283, 70%, 62%)
CMYKcmyk(19.5%, 70.4%, 0%, 37.6%)
CIE-LABlab(36.23, 51.97, -45.25)
CIE-LCHlch(36.23, 68.91, 318.96°)
OKLaboklab(47.31% 0.1274 -0.1274)
OKLCHoklch(47.31% 0.18 315)
XYZxyz(16.1756, 9.1260, 33.7036)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802F9F #4E9F2F
analogous
#482F9F #802F9F #9F2F86
triadic
#802F9F #9F802F #2F9F80
tetradic
#802F9F #9F482F #4E9F2F #2F869F
square
#802F9F #9F482F #4E9F2F #2F869F
split-complementary
#802F9F #869F2F #2F9F48
monochromatic
#341341 #5A2170 #802F9F #A344C8 #BA73D6

Accessibility & contrast

On white

7.43
#802F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#802F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802F9F
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802F9F#FFFFFF#000000##FFFFFF
##802F9F1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A2
Deuteranopia (green-blind)
#2C579C
Tritanopia (blue-blind)
#7E4663
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802f9f;
/* rgb */ color: rgb(128, 47, 159);
/* oklch */ color: oklch(47.3% 0.180 315.0);
Tailwind
colors: {
  custom: {
    50: '#a86fbc',
    500: '#802f9f',
    950: '#000000',
  },
}
SCSS
$custom: #802f9f;
$custom-light: #a86fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#802f9f",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 283.393,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47305,
    "c": 0.18016,
    "h": 315
  },
  "luminance": 0.09125
}

Semantic roles & 50–950 ramp

primary
#802F9F
secondary
#83BD6D
accent
#DE4A73
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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