#802FB3#802FB3

#802FB3 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.7% C 0.200 H 308.7°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#802FB3
RGBrgb(128, 47, 179)
HSLhsl(277, 58%, 44%)
HSVhsv(277, 74%, 70%)
CMYKcmyk(28.5%, 73.7%, 0%, 29.8%)
CIE-LABlab(37.62, 56.29, -54.96)
CIE-LCHlch(37.62, 78.67, 315.69°)
OKLaboklab(48.74% 0.1248 -0.1559)
OKLCHoklch(48.74% 0.2 308.7)
XYZxyz(18.0536, 9.8772, 43.5945)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FB3 #62B32F
analogous
#3E2FB3 #802FB3 #B32FA4
triadic
#802FB3 #B3802F #2FB380
tetradic
#802FB3 #B33E2F #62B32F #2FA4B3
square
#802FB3 #B33E2F #62B32F #2FA4B3
split-complementary
#802FB3 #A4B32F #2FB33E
monochromatic
#3B1652 #5D2283 #802FB3 #9E4FD1 #B97FDD

Accessibility & contrast

On white

7.06
#802FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802FB3
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FB3#FFFFFF#000000##FFFFFF
##802FB31.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0359B0
Tritanopia (blue-blind)
#784E6F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #802fb3;
/* rgb */ color: rgb(128, 47, 179);
/* oklch */ color: oklch(48.7% 0.200 308.7);
Tailwind
colors: {
  custom: {
    50: '#aa6fcb',
    500: '#802fb3',
    950: '#000000',
  },
}
SCSS
$custom: #802fb3;
$custom-light: #aa6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#802fb3",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 276.818,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48739,
    "c": 0.19967,
    "h": 308.7
  },
  "luminance": 0.09877
}

Semantic roles & 50–950 ramp

primary
#802FB3
secondary
#96C678
accent
#E24682
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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