#802FB6#802FB6

#802FB6 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.0% C 0.203 H 307.8°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#802FB6
RGBrgb(128, 47, 182)
HSLhsl(276, 59%, 45%)
HSVhsv(276, 74%, 71%)
CMYKcmyk(29.7%, 74.2%, 0%, 28.6%)
CIE-LABlab(37.84, 56.96, -56.37)
CIE-LCHlch(37.84, 80.14, 315.29°)
OKLaboklab(48.97% 0.1242 -0.16)
OKLCHoklch(48.97% 0.203 307.8)
XYZxyz(18.3603, 9.9999, 45.2098)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FB6 #65B62F
analogous
#3D2FB6 #802FB6 #B62FA9
triadic
#802FB6 #B6802F #2FB680
tetradic
#802FB6 #B63D2F #65B62F #2FA9B6
square
#802FB6 #B63D2F #65B62F #2FA9B6
split-complementary
#802FB6 #A9B62F #2FB63D
monochromatic
#3C1655 #5E2285 #802FB6 #9E50D2 #B981DE

Accessibility & contrast

On white

7.00
#802FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#802FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #802FB6
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FB6#FFFFFF#000000##FFFFFF
##802FB61.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BA
Deuteranopia (green-blind)
#005AB3
Tritanopia (blue-blind)
#774F70
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #802fb6;
/* rgb */ color: rgb(128, 47, 182);
/* oklch */ color: oklch(49.0% 0.203 307.8);
Tailwind
colors: {
  custom: {
    50: '#aa70cd',
    500: '#802fb6',
    950: '#000000',
  },
}
SCSS
$custom: #802fb6;
$custom-light: #aa70cd;
$custom-dark: #000000;
JSON
{
  "hex": "#802fb6",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 276,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48965,
    "c": 0.20261,
    "h": 307.8
  },
  "luminance": 0.1
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #802FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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