#802FB8#802FB8

#802FB8 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.1% C 0.205 H 307.3°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#802FB8
RGBrgb(128, 47, 184)
HSLhsl(275, 59%, 45%)
HSVhsv(275, 74%, 72%)
CMYKcmyk(30.4%, 74.5%, 0%, 27.8%)
CIE-LABlab(37.99, 57.40, -57.31)
CIE-LCHlch(37.99, 81.12, 315.04°)
OKLaboklab(49.12% 0.1239 -0.1628)
OKLCHoklch(49.12% 0.205 307.3)
XYZxyz(18.5685, 10.0832, 46.3062)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FB8 #67B82F
analogous
#3B2FB8 #802FB8 #B82FAC
triadic
#802FB8 #B8802F #2FB880
tetradic
#802FB8 #B83B2F #67B82F #2FACB8
square
#802FB8 #B83B2F #67B82F #2FACB8
split-complementary
#802FB8 #ACB82F #2FB83B
monochromatic
#3C1657 #5E2387 #802FB8 #9E52D3 #B982DF

Accessibility & contrast

On white

6.96
#802FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#802FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #802FB8
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FB8#FFFFFF#000000##FFFFFF
##802FB81.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BC
Deuteranopia (green-blind)
#005AB5
Tritanopia (blue-blind)
#775071
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #802fb8;
/* rgb */ color: rgb(128, 47, 184);
/* oklch */ color: oklch(49.1% 0.205 307.3);
Tailwind
colors: {
  custom: {
    50: '#aa70ce',
    500: '#802fb8',
    950: '#000000',
  },
}
SCSS
$custom: #802fb8;
$custom-light: #aa70ce;
$custom-dark: #000000;
JSON
{
  "hex": "#802fb8",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 275.474,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49117,
    "c": 0.20458,
    "h": 307.3
  },
  "luminance": 0.10083
}

Semantic roles & 50–950 ramp

primary
#802FB8
secondary
#9AC87B
accent
#E24586
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #802FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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