#802F9E#802F9E

#802F9E is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.2% C 0.179 H 315.4°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#802F9E
RGBrgb(128, 47, 158)
HSLhsl(284, 54%, 40%)
HSVhsv(284, 70%, 62%)
CMYKcmyk(19%, 70.3%, 0%, 38%)
CIE-LABlab(36.16, 51.76, -44.75)
CIE-LCHlch(36.16, 68.42, 319.16°)
OKLaboklab(47.24% 0.1275 -0.1259)
OKLCHoklch(47.24% 0.179 315.4)
XYZxyz(16.0892, 9.0914, 33.2484)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802F9E #4D9E2F
analogous
#492F9E #802F9E #9E2F84
triadic
#802F9E #9E802F #2F9E80
tetradic
#802F9E #9E492F #4D9E2F #2F849E
square
#802F9E #9E492F #4D9E2F #2F849E
split-complementary
#802F9E #849E2F #2F9E49
monochromatic
#341340 #5A216F #802F9E #A343C7 #BA72D5

Accessibility & contrast

On white

7.45
#802F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#802F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802F9E
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802F9E#FFFFFF#000000##FFFFFF
##802F9E1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A1
Deuteranopia (green-blind)
#2D579B
Tritanopia (blue-blind)
#7E4563
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802f9e;
/* rgb */ color: rgb(128, 47, 158);
/* oklch */ color: oklch(47.2% 0.179 315.4);
Tailwind
colors: {
  custom: {
    50: '#a86fbb',
    500: '#802f9e',
    950: '#000000',
  },
}
SCSS
$custom: #802f9e;
$custom-light: #a86fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#802f9e",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 283.784,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47236,
    "c": 0.17918,
    "h": 315.4
  },
  "luminance": 0.09091
}

Semantic roles & 50–950 ramp

primary
#802F9E
secondary
#82BD6C
accent
#DE4A72
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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