#802F9B#802F9B

#802F9B is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.0% C 0.176 H 316.4°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#802F9B
RGBrgb(128, 47, 155)
HSLhsl(285, 53%, 40%)
HSVhsv(285, 70%, 61%)
CMYKcmyk(17.4%, 69.7%, 0%, 39.2%)
CIE-LABlab(35.96, 51.14, -43.25)
CIE-LCHlch(35.96, 66.97, 319.78°)
OKLaboklab(47.03% 0.1277 -0.1215)
OKLCHoklch(47.03% 0.176 316.4)
XYZxyz(15.8341, 8.9894, 31.9050)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802F9B #4A9B2F
analogous
#4A2F9B #802F9B #9B2F80
triadic
#802F9B #9B802F #2F9B80
tetradic
#802F9B #9B4A2F #4A9B2F #2F809B
square
#802F9B #9B4A2F #4A9B2F #2F809B
split-complementary
#802F9B #809B2F #2F9B4A
monochromatic
#32133D #59216C #802F9B #A542C6 #BB71D4

Accessibility & contrast

On white

7.51
#802F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802F9B
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802F9B#FFFFFF#000000##FFFFFF
##802F9B1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509E
Deuteranopia (green-blind)
#305798
Tritanopia (blue-blind)
#7E4461
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802f9b;
/* rgb */ color: rgb(128, 47, 155);
/* oklch */ color: oklch(47.0% 0.176 316.4);
Tailwind
colors: {
  custom: {
    50: '#a86eb9',
    500: '#802f9b',
    950: '#000000',
  },
}
SCSS
$custom: #802f9b;
$custom-light: #a86eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#802f9b",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 285,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.47034,
    "c": 0.17629,
    "h": 316.4
  },
  "luminance": 0.08989
}

Semantic roles & 50–950 ramp

primary
#802F9B
secondary
#7FBB6A
accent
#DD4B6F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #802F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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