#802FAB#802FAB

#802FAB is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.1% C 0.192 H 311.1°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#802FAB
RGBrgb(128, 47, 171)
HSLhsl(279, 57%, 43%)
HSVhsv(279, 73%, 67%)
CMYKcmyk(25.1%, 72.5%, 0%, 32.9%)
CIE-LABlab(37.05, 54.54, -51.13)
CIE-LCHlch(37.05, 74.76, 316.85°)
OKLaboklab(48.15% 0.126 -0.1446)
OKLCHoklch(48.15% 0.192 311.1)
XYZxyz(17.2679, 9.5629, 39.4564)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FAB #5AAB2F
analogous
#422FAB #802FAB #AB2F98
triadic
#802FAB #AB802F #2FAB80
tetradic
#802FAB #AB422F #5AAB2F #2F98AB
square
#802FAB #AB422F #5AAB2F #2F98AB
split-complementary
#802FAB #98AB2F #2FAB42
monochromatic
#38154B #5C227B #802FAB #A04ACD #B97ADA

Accessibility & contrast

On white

7.21
#802FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#802FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802FAB
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FAB#FFFFFF#000000##FFFFFF
##802FAB1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#1B59A8
Tritanopia (blue-blind)
#7A4B6A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #802fab;
/* rgb */ color: rgb(128, 47, 171);
/* oklch */ color: oklch(48.1% 0.192 311.1);
Tailwind
colors: {
  custom: {
    50: '#a96fc5',
    500: '#802fab',
    950: '#000000',
  },
}
SCSS
$custom: #802fab;
$custom-light: #a96fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#802fab",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 279.194,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4815,
    "c": 0.19184,
    "h": 311.1
  },
  "luminance": 0.09562
}

Semantic roles & 50–950 ramp

primary
#802FAB
secondary
#8FC373
accent
#E0487D
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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