#802EAF#802EAF

#802EAF is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.3% C 0.197 H 309.9°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#802EAF
RGBrgb(128, 46, 175)
HSLhsl(278, 58%, 43%)
HSVhsv(278, 74%, 69%)
CMYKcmyk(26.9%, 73.7%, 0%, 31.4%)
CIE-LABlab(37.19, 55.82, -53.29)
CIE-LCHlch(37.19, 77.17, 316.33°)
OKLaboklab(48.34% 0.1264 -0.151)
OKLCHoklch(48.34% 0.197 309.9)
XYZxyz(17.6154, 9.6387, 41.4816)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802EAF #5DAF2E
analogous
#402EAF #802EAF #AF2E9D
triadic
#802EAF #AF802E #2EAF80
tetradic
#802EAF #AF402E #5DAF2E #2E9DAF
square
#802EAF #AF402E #5DAF2E #2E9DAF
split-complementary
#802EAF #9DAF2E #2EAF40
monochromatic
#39154E #5D217F #802EAF #9F4BD0 #B97BDC

Accessibility & contrast

On white

7.17
#802EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#802EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802EAF
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802EAF#FFFFFF#000000##FFFFFF
##802EAF1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#1059AC
Tritanopia (blue-blind)
#794C6C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #802eaf;
/* rgb */ color: rgb(128, 46, 175);
/* oklch */ color: oklch(48.3% 0.197 309.9);
Tailwind
colors: {
  custom: {
    50: '#a96fc8',
    500: '#802eaf',
    950: '#000000',
  },
}
SCSS
$custom: #802eaf;
$custom-light: #a96fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#802eaf",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 278.14,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4834,
    "c": 0.1969,
    "h": 309.9
  },
  "luminance": 0.09638
}

Semantic roles & 50–950 ramp

primary
#802EAF
secondary
#91C574
accent
#E2467F
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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