#802FCF#802FCF

#802FCF is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.9% C 0.227 H 301.5°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#802FCF
RGBrgb(128, 47, 207)
HSLhsl(270, 63%, 50%)
HSVhsv(270, 77%, 81%)
CMYKcmyk(38.2%, 77.3%, 0%, 18.8%)
CIE-LABlab(39.79, 62.63, -67.82)
CIE-LCHlch(39.79, 92.32, 312.72°)
OKLaboklab(50.94% 0.1186 -0.1937)
OKLCHoklch(50.94% 0.227 301.5)
XYZxyz(21.1783, 11.1271, 60.0514)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FCF #7ECF2F
analogous
#302FCF #802FCF #CF2FCE
triadic
#802FCF #CF802F #2FCF80
tetradic
#802FCF #CF302F #7ECF2F #2FCECF
square
#802FCF #CF302F #7ECF2F #2FCECF
split-complementary
#802FCF #CECF2F #2FCF30
monochromatic
#42186B #61249D #802FCF #9E60DB #BD92E6

Accessibility & contrast

On white

6.51
#802FCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#802FCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #802FCF
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FCF#FFFFFF#000000##FFFFFF
##802FCF1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD3
Deuteranopia (green-blind)
#005DCC
Tritanopia (blue-blind)
#6E5A7E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #802fcf;
/* rgb */ color: rgb(128, 47, 207);
/* oklch */ color: oklch(50.9% 0.227 301.5);
Tailwind
colors: {
  custom: {
    50: '#ac71df',
    500: '#802fcf',
    950: '#000000',
  },
}
SCSS
$custom: #802fcf;
$custom-light: #ac71df;
$custom-dark: #000000;
JSON
{
  "hex": "#802fcf",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 207
  },
  "hsl": {
    "h": 270.375,
    "s": 62.992,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50945,
    "c": 0.22712,
    "h": 301.5
  },
  "luminance": 0.11127
}

Semantic roles & 50–950 ramp

primary
#802FCF
secondary
#ACD189
accent
#E64293
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #802FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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