#802EB2#802EB2

#802EB2 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.6% C 0.200 H 309.1°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#802EB2
RGBrgb(128, 46, 178)
HSLhsl(277, 59%, 44%)
HSVhsv(277, 74%, 70%)
CMYKcmyk(28.1%, 74.2%, 0%, 30.2%)
CIE-LABlab(37.40, 56.48, -54.72)
CIE-LCHlch(37.40, 78.64, 315.91°)
OKLaboklab(48.56% 0.1259 -0.1552)
OKLCHoklch(48.56% 0.2 309.1)
XYZxyz(17.9133, 9.7579, 43.0506)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802EB2 #60B22E
analogous
#3E2EB2 #802EB2 #B22EA2
triadic
#802EB2 #B2802E #2EB280
tetradic
#802EB2 #B23E2E #60B22E #2EA2B2
square
#802EB2 #B23E2E #60B22E #2EA2B2
split-complementary
#802EB2 #A2B22E #2EB23E
monochromatic
#3A1551 #5D2181 #802EB2 #9F4CD1 #B97DDD

Accessibility & contrast

On white

7.11
#802EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#802EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802EB2
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802EB2#FFFFFF#000000##FFFFFF
##802EB21.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0459AF
Tritanopia (blue-blind)
#784D6E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #802eb2;
/* rgb */ color: rgb(128, 46, 178);
/* oklch */ color: oklch(48.6% 0.200 309.1);
Tailwind
colors: {
  custom: {
    50: '#aa6fca',
    500: '#802eb2',
    950: '#000000',
  },
}
SCSS
$custom: #802eb2;
$custom-light: #aa6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#802eb2",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 277.273,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48563,
    "c": 0.19983,
    "h": 309.1
  },
  "luminance": 0.09758
}

Semantic roles & 50–950 ramp

primary
#802EB2
secondary
#94C676
accent
#E24681
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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