#802FAC#802FAC

#802FAC is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.2% C 0.193 H 310.8°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#802FAC
RGBrgb(128, 47, 172)
HSLhsl(279, 57%, 43%)
HSVhsv(279, 73%, 67%)
CMYKcmyk(25.6%, 72.7%, 0%, 32.5%)
CIE-LABlab(37.12, 54.75, -51.61)
CIE-LCHlch(37.12, 75.25, 316.69°)
OKLaboklab(48.22% 0.1259 -0.1461)
OKLCHoklch(48.22% 0.193 310.8)
XYZxyz(17.3636, 9.6012, 39.9603)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FAC #5BAC2F
analogous
#412FAC #802FAC #AC2F99
triadic
#802FAC #AC802F #2FAC80
tetradic
#802FAC #AC412F #5BAC2F #2F99AC
square
#802FAC #AC412F #5BAC2F #2F99AC
split-complementary
#802FAC #99AC2F #2FAC41
monochromatic
#38154C #5C227C #802FAC #A04BCE #B97BDB

Accessibility & contrast

On white

7.19
#802FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#802FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802FAC
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FAC#FFFFFF#000000##FFFFFF
##802FAC1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B0
Deuteranopia (green-blind)
#1959A9
Tritanopia (blue-blind)
#7A4B6B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #802fac;
/* rgb */ color: rgb(128, 47, 172);
/* oklch */ color: oklch(48.2% 0.193 310.8);
Tailwind
colors: {
  custom: {
    50: '#a96fc5',
    500: '#802fac',
    950: '#000000',
  },
}
SCSS
$custom: #802fac;
$custom-light: #a96fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#802fac",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 278.88,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.48223,
    "c": 0.19283,
    "h": 310.8
  },
  "luminance": 0.09601
}

Semantic roles & 50–950 ramp

primary
#802FAC
secondary
#90C374
accent
#E0477D
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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