#802BB2#802BB2

#802BB2 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.203 H 309.3°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#802BB2
RGBrgb(128, 43, 178)
HSLhsl(278, 61%, 43%)
HSVhsv(278, 76%, 70%)
CMYKcmyk(28.1%, 75.8%, 0%, 30.2%)
CIE-LABlab(36.99, 57.67, -55.39)
CIE-LCHlch(36.99, 79.96, 316.15°)
OKLaboklab(48.27% 0.1287 -0.1571)
OKLCHoklch(48.27% 0.203 309.3)
XYZxyz(17.8002, 9.5316, 43.0129)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802BB2 #5DB22B
analogous
#3D2BB2 #802BB2 #B22BA0
triadic
#802BB2 #B2802B #2BB280
tetradic
#802BB2 #B23D2B #5DB22B #2BA0B2
square
#802BB2 #B23D2B #5DB22B #2BA0B2
split-complementary
#802BB2 #A0B22B #2BB23D
monochromatic
#39134F #5D1F81 #802BB2 #9F48D3 #B979DF

Accessibility & contrast

On white

7.23
#802BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802BB2
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802BB2#FFFFFF#000000##FFFFFF
##802BB21.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #802bb2;
/* rgb */ color: rgb(128, 43, 178);
/* oklch */ color: oklch(48.3% 0.203 309.3);
Tailwind
colors: {
  custom: {
    50: '#aa6dca',
    500: '#802bb2',
    950: '#000000',
  },
}
SCSS
$custom: #802bb2;
$custom-light: #aa6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#802bb2",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 277.778,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48269,
    "c": 0.20311,
    "h": 309.3
  },
  "luminance": 0.09531
}

Semantic roles & 50–950 ramp

primary
#802BB2
secondary
#91C772
accent
#E4447F
background
#FAF6FC
surface
#F5ECF8
border
#CFC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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