#802271#802271

#802271 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.1% C 0.156 H 335.2°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#802271
RGBrgb(128, 34, 113)
HSLhsl(310, 58%, 32%)
HSVhsv(310, 73%, 50%)
CMYKcmyk(0%, 73.4%, 11.7%, 49.8%)
CIE-LABlab(31.64, 48.62, -24.06)
CIE-LCHlch(31.64, 54.25, 333.67°)
OKLaboklab(43.13% 0.1419 -0.0657)
OKLCHoklch(43.13% 0.156 335.2)
XYZxyz(12.4549, 6.9266, 16.3006)
Luminance0.0693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802271 #228031
analogous
#602280 #802271 #802242
triadic
#802271 #718022 #227180
tetradic
#802271 #806022 #228031 #224280
square
#802271 #806022 #228031 #224280
split-complementary
#802271 #428022 #228060
monochromatic
#1F081C #501546 #802271 #B02F9C #D04DBB

Accessibility & contrast

On white

8.80
#802271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#802271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802271
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802271#FFFFFF#000000##FFFFFF
##8022711.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224273
Deuteranopia (green-blind)
#434F6F
Tritanopia (blue-blind)
#862947
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #802271;
/* rgb */ color: rgb(128, 34, 113);
/* oklch */ color: oklch(43.1% 0.156 335.2);
Tailwind
colors: {
  custom: {
    50: '#a8679a',
    500: '#802271',
    950: '#000000',
  },
}
SCSS
$custom: #802271;
$custom-light: #a8679a;
$custom-dark: #000000;
JSON
{
  "hex": "#802271",
  "rgb": {
    "r": 128,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 309.574,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.4313,
    "c": 0.15632,
    "h": 335.2
  },
  "luminance": 0.06926
}

Semantic roles & 50–950 ramp

primary
#802271
secondary
#4BB25C
accent
#E15F47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #802271

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

Preview Lab → · Contrast checker → · Palette generator →

#802271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva