#802EBC#802EBC

#802EBC is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.3% C 0.210 H 306.3°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#802EBC
RGBrgb(128, 46, 188)
HSLhsl(275, 61%, 46%)
HSVhsv(275, 76%, 74%)
CMYKcmyk(31.9%, 75.5%, 0%, 26.3%)
CIE-LABlab(38.15, 58.70, -59.41)
CIE-LCHlch(38.15, 83.52, 314.66°)
OKLaboklab(49.33% 0.124 -0.169)
OKLCHoklch(49.33% 0.21 306.3)
XYZxyz(18.9542, 10.1742, 48.5325)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802EBC #6ABC2E
analogous
#392EBC #802EBC #BC2EB1
triadic
#802EBC #BC802E #2EBC80
tetradic
#802EBC #BC392E #6ABC2E #2EB1BC
square
#802EBC #BC392E #6ABC2E #2EB1BC
split-complementary
#802EBC #B1BC2E #2EBC39
monochromatic
#3D165A #5F228B #802EBC #9E52D5 #B984E1

Accessibility & contrast

On white

6.92
#802EBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#802EBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #802EBC
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802EBC#FFFFFF#000000##FFFFFF
##802EBC1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#755173
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #802ebc;
/* rgb */ color: rgb(128, 46, 188);
/* oklch */ color: oklch(49.3% 0.210 306.3);
Tailwind
colors: {
  custom: {
    50: '#aa6fd1',
    500: '#802ebc',
    950: '#000000',
  },
}
SCSS
$custom: #802ebc;
$custom-light: #aa6fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#802ebc",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 188
  },
  "hsl": {
    "h": 274.648,
    "s": 60.684,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49327,
    "c": 0.20956,
    "h": 306.3
  },
  "luminance": 0.10174
}

Semantic roles & 50–950 ramp

primary
#802EBC
secondary
#9DCA7C
accent
#E44488
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #802EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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