#802BA4#802BA4

#802BA4 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.2% C 0.190 H 313.6°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#802BA4
RGBrgb(128, 43, 164)
HSLhsl(282, 58%, 41%)
HSVhsv(282, 74%, 64%)
CMYKcmyk(22%, 73.8%, 0%, 35.7%)
CIE-LABlab(35.98, 54.68, -48.66)
CIE-LCHlch(35.98, 73.19, 318.34°)
OKLaboklab(47.24% 0.131 -0.1373)
OKLCHoklch(47.24% 0.19 313.6)
XYZxyz(16.4656, 8.9978, 35.9842)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802BA4 #4FA42B
analogous
#442BA4 #802BA4 #A42B8B
triadic
#802BA4 #A4802B #2BA480
tetradic
#802BA4 #A4442B #4FA42B #2B8BA4
square
#802BA4 #A4442B #4FA42B #2B8BA4
split-complementary
#802BA4 #8BA42B #2BA444
monochromatic
#341243 #5A1E74 #802BA4 #A33FCD #BA70D9

Accessibility & contrast

On white

7.50
#802BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802BA4
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802BA4#FFFFFF#000000##FFFFFF
##802BA41.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#2157A1
Tritanopia (blue-blind)
#7C4565
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802ba4;
/* rgb */ color: rgb(128, 43, 164);
/* oklch */ color: oklch(47.2% 0.190 313.6);
Tailwind
colors: {
  custom: {
    50: '#a96dc0',
    500: '#802ba4',
    950: '#000000',
  },
}
SCSS
$custom: #802ba4;
$custom-light: #a96dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#802ba4",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 282.149,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47238,
    "c": 0.18981,
    "h": 313.6
  },
  "luminance": 0.08997
}

Semantic roles & 50–950 ramp

primary
#802BA4
secondary
#84C16A
accent
#E24674
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #802BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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