#802FB1#802FB1

#802FB1 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.6% C 0.198 H 309.3°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#802FB1
RGBrgb(128, 47, 177)
HSLhsl(277, 58%, 44%)
HSVhsv(277, 73%, 69%)
CMYKcmyk(27.7%, 73.4%, 0%, 30.6%)
CIE-LABlab(37.48, 55.85, -54.01)
CIE-LCHlch(37.48, 77.69, 315.96°)
OKLaboklab(48.59% 0.1251 -0.1531)
OKLCHoklch(48.59% 0.198 309.3)
XYZxyz(17.8528, 9.7969, 42.5370)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FB1 #60B12F
analogous
#3F2FB1 #802FB1 #B12FA1
triadic
#802FB1 #B1802F #2FB180
tetradic
#802FB1 #B13F2F #60B12F #2FA1B1
square
#802FB1 #B13F2F #60B12F #2FA1B1
split-complementary
#802FB1 #A1B12F #2FB13F
monochromatic
#3A1550 #5D2281 #802FB1 #9F4DD0 #B97EDD

Accessibility & contrast

On white

7.10
#802FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#802FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802FB1
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FB1#FFFFFF#000000##FFFFFF
##802FB11.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B5
Deuteranopia (green-blind)
#0C59AE
Tritanopia (blue-blind)
#794D6D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #802fb1;
/* rgb */ color: rgb(128, 47, 177);
/* oklch */ color: oklch(48.6% 0.198 309.3);
Tailwind
colors: {
  custom: {
    50: '#a96fc9',
    500: '#802fb1',
    950: '#000000',
  },
}
SCSS
$custom: #802fb1;
$custom-light: #a96fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#802fb1",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 277.385,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4859,
    "c": 0.19772,
    "h": 309.3
  },
  "luminance": 0.09797
}

Semantic roles & 50–950 ramp

primary
#802FB1
secondary
#94C576
accent
#E14781
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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