#802F9D#802F9D

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

Color values

HEX#802F9D
RGBrgb(128, 47, 157)
HSLhsl(284, 54%, 40%)
HSVhsv(284, 70%, 62%)
CMYKcmyk(18.5%, 70.1%, 0%, 38.4%)
CIE-LABlab(36.09, 51.55, -44.25)
CIE-LCHlch(36.09, 67.94, 319.36°)
OKLaboklab(47.17% 0.1276 -0.1244)
OKLCHoklch(47.17% 0.178 315.7)
XYZxyz(16.0034, 9.0571, 32.7970)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802F9D #4C9D2F
analogous
#492F9D #802F9D #9D2F83
triadic
#802F9D #9D802F #2F9D80
tetradic
#802F9D #9D492F #4C9D2F #2F839D
square
#802F9D #9D492F #4C9D2F #2F839D
split-complementary
#802F9D #839D2F #2F9D49
monochromatic
#33133F #5A216E #802F9D #A443C7 #BB72D5

Accessibility & contrast

On white

7.47
#802F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#802F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802F9D
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802F9D#FFFFFF#000000##FFFFFF
##802F9D1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#2E579A
Tritanopia (blue-blind)
#7E4562
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802f9d;
/* rgb */ color: rgb(128, 47, 157);
/* oklch */ color: oklch(47.2% 0.178 315.7);
Tailwind
colors: {
  custom: {
    50: '#a86fba',
    500: '#802f9d',
    950: '#000000',
  },
}
SCSS
$custom: #802f9d;
$custom-light: #a86fba;
$custom-dark: #000000;
JSON
{
  "hex": "#802f9d",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 284.182,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.47168,
    "c": 0.17822,
    "h": 315.7
  },
  "luminance": 0.09057
}

Semantic roles & 50–950 ramp

primary
#802F9D
secondary
#81BC6B
accent
#DD4B71
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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