#802CB9#802CB9

#802CB9 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.9% C 0.209 H 307.3°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#802CB9
RGBrgb(128, 44, 185)
HSLhsl(276, 62%, 45%)
HSVhsv(276, 76%, 73%)
CMYKcmyk(30.8%, 76.2%, 0%, 27.5%)
CIE-LABlab(37.65, 58.81, -58.46)
CIE-LCHlch(37.65, 82.92, 315.17°)
OKLaboklab(48.9% 0.1264 -0.1662)
OKLCHoklch(48.9% 0.209 307.3)
XYZxyz(18.5579, 9.8936, 46.8215)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802CB9 #65B92C
analogous
#3A2CB9 #802CB9 #B92CAB
triadic
#802CB9 #B9802C #2CB980
tetradic
#802CB9 #B93A2C #65B92C #2CABB9
square
#802CB9 #B93A2C #65B92C #2CABB9
split-complementary
#802CB9 #ABB92C #2CB93A
monochromatic
#3C1456 #5E2088 #802CB9 #9E4DD5 #B97FE1

Accessibility & contrast

On white

7.05
#802CB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#802CB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802CB9
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802CB9#FFFFFF#000000##FFFFFF
##802CB91.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#764F71
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #802cb9;
/* rgb */ color: rgb(128, 44, 185);
/* oklch */ color: oklch(48.9% 0.209 307.3);
Tailwind
colors: {
  custom: {
    50: '#aa6ecf',
    500: '#802cb9',
    950: '#000000',
  },
}
SCSS
$custom: #802cb9;
$custom-light: #aa6ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#802cb9",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 185
  },
  "hsl": {
    "h": 275.745,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48901,
    "c": 0.20876,
    "h": 307.3
  },
  "luminance": 0.09893
}

Semantic roles & 50–950 ramp

primary
#802CB9
secondary
#99C978
accent
#E54384
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #802CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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