#802FC9#802FC9

#802FC9 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.5% C 0.221 H 302.9°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#802FC9
RGBrgb(128, 47, 201)
HSLhsl(272, 62%, 49%)
HSVhsv(272, 77%, 79%)
CMYKcmyk(36.3%, 76.6%, 0%, 21.2%)
CIE-LABlab(39.31, 61.25, -65.13)
CIE-LCHlch(39.31, 89.41, 313.24°)
OKLaboklab(50.46% 0.1201 -0.1858)
OKLCHoklch(50.46% 0.221 302.9)
XYZxyz(20.4587, 10.8392, 56.2614)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FC9 #78C92F
analogous
#332FC9 #802FC9 #C92FC5
triadic
#802FC9 #C9802F #2FC980
tetradic
#802FC9 #C9332F #78C92F #2FC5C9
square
#802FC9 #C9332F #78C92F #2FC5C9
split-complementary
#802FC9 #C5C92F #2FC933
monochromatic
#411866 #602397 #802FC9 #9E5CD9 #BB8EE5

Accessibility & contrast

On white

6.63
#802FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#802FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #802FC9
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FC9#FFFFFF#000000##FFFFFF
##802FC91.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCD
Deuteranopia (green-blind)
#005CC6
Tritanopia (blue-blind)
#71577B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #802fc9;
/* rgb */ color: rgb(128, 47, 201);
/* oklch */ color: oklch(50.5% 0.221 302.9);
Tailwind
colors: {
  custom: {
    50: '#ab70da',
    500: '#802fc9',
    950: '#000000',
  },
}
SCSS
$custom: #802fc9;
$custom-light: #ab70da;
$custom-dark: #000000;
JSON
{
  "hex": "#802fc9",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 271.558,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50455,
    "c": 0.22125,
    "h": 302.9
  },
  "luminance": 0.10839
}

Semantic roles & 50–950 ramp

primary
#802FC9
secondary
#A8CF85
accent
#E54390
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #802FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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