#802CB1#802CB1

#802CB1 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.3% C 0.201 H 309.5°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#802CB1
RGBrgb(128, 44, 177)
HSLhsl(278, 60%, 43%)
HSVhsv(278, 75%, 69%)
CMYKcmyk(27.7%, 75.1%, 0%, 30.6%)
CIE-LABlab(37.05, 57.06, -54.70)
CIE-LCHlch(37.05, 79.04, 316.21°)
OKLaboklab(48.29% 0.128 -0.1551)
OKLCHoklch(48.29% 0.201 309.5)
XYZxyz(17.7370, 9.5652, 42.4984)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802CB1 #5DB12C
analogous
#3E2CB1 #802CB1 #B12C9F
triadic
#802CB1 #B1802C #2CB180
tetradic
#802CB1 #B13E2C #5DB12C #2C9FB1
square
#802CB1 #B13E2C #5DB12C #2C9FB1
split-complementary
#802CB1 #9FB12C #2CB13E
monochromatic
#39144F #5D2080 #802CB1 #9F49D2 #B97ADE

Accessibility & contrast

On white

7.21
#802CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#802CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802CB1
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802CB1#FFFFFF#000000##FFFFFF
##802CB11.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0258AE
Tritanopia (blue-blind)
#794C6D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #802cb1;
/* rgb */ color: rgb(128, 44, 177);
/* oklch */ color: oklch(48.3% 0.201 309.5);
Tailwind
colors: {
  custom: {
    50: '#aa6ec9',
    500: '#802cb1',
    950: '#000000',
  },
}
SCSS
$custom: #802cb1;
$custom-light: #aa6ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#802cb1",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 277.895,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4829,
    "c": 0.20108,
    "h": 309.5
  },
  "luminance": 0.09565
}

Semantic roles & 50–950 ramp

primary
#802CB1
secondary
#91C673
accent
#E3447F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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