#802BB4#802BB4

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

Color values

HEX#802BB4
RGBrgb(128, 43, 180)
HSLhsl(277, 61%, 44%)
HSVhsv(277, 76%, 71%)
CMYKcmyk(28.9%, 76.1%, 0%, 29.4%)
CIE-LABlab(37.14, 58.10, -56.33)
CIE-LCHlch(37.14, 80.93, 315.89°)
OKLaboklab(48.42% 0.1283 -0.1599)
OKLCHoklch(48.42% 0.205 308.7)
XYZxyz(18.0025, 9.6126, 44.0782)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802BB4 #5FB42B
analogous
#3B2BB4 #802BB4 #B42BA3
triadic
#802BB4 #B4802B #2BB480
tetradic
#802BB4 #B43B2B #5FB42B #2BA3B4
square
#802BB4 #B43B2B #5FB42B #2BA3B4
split-complementary
#802BB4 #A3B42B #2BB43B
monochromatic
#3A1351 #5D1F83 #802BB4 #9F49D3 #B97ADF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##802BB4#FFFFFF#000000##FFFFFF
##802BB41.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)
#0054B8
Deuteranopia (green-blind)
#0058B1
Tritanopia (blue-blind)
#784C6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #802bb4;
/* rgb */ color: rgb(128, 43, 180);
/* oklch */ color: oklch(48.4% 0.205 308.7);
Tailwind
colors: {
  custom: {
    50: '#aa6ecb',
    500: '#802bb4',
    950: '#000000',
  },
}
SCSS
$custom: #802bb4;
$custom-light: #aa6ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#802bb4",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 277.226,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48422,
    "c": 0.20502,
    "h": 308.7
  },
  "luminance": 0.09612
}

Semantic roles & 50–950 ramp

primary
#802BB4
secondary
#93C773
accent
#E54380
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110813
muted
#807B82

Preview Lab

Preview with #802BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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