#802FB5#802FB5

#802FB5 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.202 H 308.1°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#802FB5
RGBrgb(128, 47, 181)
HSLhsl(276, 59%, 45%)
HSVhsv(276, 74%, 71%)
CMYKcmyk(29.3%, 74%, 0%, 29%)
CIE-LABlab(37.77, 56.73, -55.90)
CIE-LCHlch(37.77, 79.65, 315.42°)
OKLaboklab(48.89% 0.1244 -0.1587)
OKLCHoklch(48.89% 0.202 308.1)
XYZxyz(18.2574, 9.9587, 44.6675)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FB5 #64B52F
analogous
#3D2FB5 #802FB5 #B52FA7
triadic
#802FB5 #B5802F #2FB580
tetradic
#802FB5 #B53D2F #64B52F #2FA7B5
square
#802FB5 #B53D2F #64B52F #2FA7B5
split-complementary
#802FB5 #A7B52F #2FB53D
monochromatic
#3B1654 #5E2284 #802FB5 #9E50D1 #B980DE

Accessibility & contrast

On white

7.02
#802FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#802FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802FB5
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FB5#FFFFFF#000000##FFFFFF
##802FB51.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#005AB2
Tritanopia (blue-blind)
#784F70
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #802fb5;
/* rgb */ color: rgb(128, 47, 181);
/* oklch */ color: oklch(48.9% 0.202 308.1);
Tailwind
colors: {
  custom: {
    50: '#aa70cc',
    500: '#802fb5',
    950: '#000000',
  },
}
SCSS
$custom: #802fb5;
$custom-light: #aa70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#802fb5",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 276.269,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4889,
    "c": 0.20163,
    "h": 308.1
  },
  "luminance": 0.09958
}

Semantic roles & 50–950 ramp

primary
#802FB5
secondary
#98C779
accent
#E24684
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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