#802FD2#802FD2

#802FD2 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.2% C 0.230 H 300.8°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#802FD2
RGBrgb(128, 47, 210)
HSLhsl(270, 64%, 50%)
HSVhsv(270, 78%, 82%)
CMYKcmyk(39%, 77.6%, 0%, 17.6%)
CIE-LABlab(40.04, 63.33, -69.15)
CIE-LCHlch(40.04, 93.77, 312.48°)
OKLaboklab(51.19% 0.1178 -0.1976)
OKLCHoklch(51.19% 0.23 300.8)
XYZxyz(21.5486, 11.2752, 62.0013)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FD2 #81D22F
analogous
#2F2FD2 #802FD2 #D22FD2
triadic
#802FD2 #D2802F #2FD280
tetradic
#802FD2 #D22F2F #81D22F #2FD2D2
square
#802FD2 #D22F2F #81D22F #2FD2D2
split-complementary
#802FD2 #D2D22F #2FD22F
monochromatic
#43186F #6223A1 #802FD2 #9F61DD #BD94E8

Accessibility & contrast

On white

6.45
#802FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#802FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #802FD2
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FD2#FFFFFF#000000##FFFFFF
##802FD21.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED6
Deuteranopia (green-blind)
#005DCF
Tritanopia (blue-blind)
#6D5B80
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #802fd2;
/* rgb */ color: rgb(128, 47, 210);
/* oklch */ color: oklch(51.2% 0.230 300.8);
Tailwind
colors: {
  custom: {
    50: '#ac71e1',
    500: '#802fd2',
    950: '#000000',
  },
}
SCSS
$custom: #802fd2;
$custom-light: #ac71e1;
$custom-dark: #000000;
JSON
{
  "hex": "#802fd2",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 210
  },
  "hsl": {
    "h": 269.816,
    "s": 64.427,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51193,
    "c": 0.23006,
    "h": 300.8
  },
  "luminance": 0.11275
}

Semantic roles & 50–950 ramp

primary
#802FD2
secondary
#AFD38A
accent
#E74094
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #802FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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