#802FB4#802FB4

#802FB4 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.201 H 308.4°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#802FB4
RGBrgb(128, 47, 180)
HSLhsl(277, 59%, 45%)
HSVhsv(277, 74%, 71%)
CMYKcmyk(28.9%, 73.9%, 0%, 29.4%)
CIE-LABlab(37.69, 56.51, -55.43)
CIE-LCHlch(37.69, 79.16, 315.55°)
OKLaboklab(48.81% 0.1246 -0.1573)
OKLCHoklch(48.81% 0.201 308.4)
XYZxyz(18.1551, 9.9178, 44.1291)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FB4 #63B42F
analogous
#3D2FB4 #802FB4 #B42FA6
triadic
#802FB4 #B4802F #2FB480
tetradic
#802FB4 #B43D2F #63B42F #2FA6B4
square
#802FB4 #B43D2F #63B42F #2FA6B4
split-complementary
#802FB4 #A6B42F #2FB43D
monochromatic
#3B1653 #5D2283 #802FB4 #9E4FD1 #B980DE

Accessibility & contrast

On white

7.04
#802FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#802FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802FB4
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FB4#FFFFFF#000000##FFFFFF
##802FB41.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#005AB1
Tritanopia (blue-blind)
#784E6F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #802fb4;
/* rgb */ color: rgb(128, 47, 180);
/* oklch */ color: oklch(48.8% 0.201 308.4);
Tailwind
colors: {
  custom: {
    50: '#aa6fcb',
    500: '#802fb4',
    950: '#000000',
  },
}
SCSS
$custom: #802fb4;
$custom-light: #aa6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#802fb4",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 276.541,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48814,
    "c": 0.20065,
    "h": 308.4
  },
  "luminance": 0.09918
}

Semantic roles & 50–950 ramp

primary
#802FB4
secondary
#97C778
accent
#E24683
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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