#802CB2#802CB2

#802CB2 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.202 H 309.2°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#802CB2
RGBrgb(128, 44, 178)
HSLhsl(278, 60%, 44%)
HSVhsv(278, 75%, 70%)
CMYKcmyk(28.1%, 75.3%, 0%, 30.2%)
CIE-LABlab(37.12, 57.28, -55.17)
CIE-LCHlch(37.12, 79.53, 316.07°)
OKLaboklab(48.37% 0.1278 -0.1565)
OKLCHoklch(48.37% 0.202 309.2)
XYZxyz(17.8370, 9.6053, 43.0252)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802CB2 #5EB22C
analogous
#3D2CB2 #802CB2 #B22CA1
triadic
#802CB2 #B2802C #2CB280
tetradic
#802CB2 #B23D2C #5EB22C #2CA1B2
square
#802CB2 #B23D2C #5EB22C #2CA1B2
split-complementary
#802CB2 #A1B22C #2CB23D
monochromatic
#391450 #5D2081 #802CB2 #9F49D2 #B97ADE

Accessibility & contrast

On white

7.19
#802CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#802CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802CB2
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802CB2#FFFFFF#000000##FFFFFF
##802CB21.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#784C6D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #802cb2;
/* rgb */ color: rgb(128, 44, 178);
/* oklch */ color: oklch(48.4% 0.202 309.2);
Tailwind
colors: {
  custom: {
    50: '#aa6eca',
    500: '#802cb2',
    950: '#000000',
  },
}
SCSS
$custom: #802cb2;
$custom-light: #aa6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#802cb2",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 277.612,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48365,
    "c": 0.20203,
    "h": 309.2
  },
  "luminance": 0.09605
}

Semantic roles & 50–950 ramp

primary
#802CB2
secondary
#92C673
accent
#E44480
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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