#802EB9#802EB9

#802EB9 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.1% C 0.207 H 307.1°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#802EB9
RGBrgb(128, 46, 185)
HSLhsl(275, 60%, 45%)
HSVhsv(275, 75%, 73%)
CMYKcmyk(30.8%, 75.1%, 0%, 27.5%)
CIE-LABlab(37.93, 58.03, -58.01)
CIE-LCHlch(37.93, 82.05, 315.01°)
OKLaboklab(49.09% 0.1246 -0.1649)
OKLCHoklch(49.09% 0.207 307.1)
XYZxyz(18.6342, 10.0462, 46.8470)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802EB9 #67B92E
analogous
#3B2EB9 #802EB9 #B92EAC
triadic
#802EB9 #B9802E #2EB980
tetradic
#802EB9 #B93B2E #67B92E #2EACB9
square
#802EB9 #B93B2E #67B92E #2EACB9
split-complementary
#802EB9 #ACB92E #2EB93B
monochromatic
#3C1657 #5E2288 #802EB9 #9E51D4 #B982E0

Accessibility & contrast

On white

6.98
#802EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#802EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #802EB9
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802EB9#FFFFFF#000000##FFFFFF
##802EB91.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#005AB6
Tritanopia (blue-blind)
#765072
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #802eb9;
/* rgb */ color: rgb(128, 46, 185);
/* oklch */ color: oklch(49.1% 0.207 307.1);
Tailwind
colors: {
  custom: {
    50: '#aa6fcf',
    500: '#802eb9',
    950: '#000000',
  },
}
SCSS
$custom: #802eb9;
$custom-light: #aa6fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#802eb9",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 275.396,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49094,
    "c": 0.20664,
    "h": 307.1
  },
  "luminance": 0.10046
}

Semantic roles & 50–950 ramp

primary
#802EB9
secondary
#9AC97A
accent
#E34486
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #802EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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