#802277#802277

#802277 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.5% C 0.161 H 332.2°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#802277
RGBrgb(128, 34, 119)
HSLhsl(306, 58%, 32%)
HSVhsv(306, 73%, 50%)
CMYKcmyk(0%, 73.4%, 7%, 49.8%)
CIE-LABlab(31.96, 49.60, -27.36)
CIE-LCHlch(31.96, 56.65, 331.12°)
OKLaboklab(43.46% 0.1424 -0.0752)
OKLCHoklch(43.46% 0.161 332.2)
XYZxyz(12.8039, 7.0662, 18.1387)
Luminance0.0707 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802277 #22802B
analogous
#5A2280 #802277 #802248
triadic
#802277 #778022 #227780
tetradic
#802277 #805A22 #22802B #224880
square
#802277 #805A22 #22802B #224880
split-complementary
#802277 #488022 #22805A
monochromatic
#1F081D #50154A #802277 #B02FA4 #D04DC3

Accessibility & contrast

On white

8.70
#802277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#802277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802277
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802277#FFFFFF#000000##FFFFFF
##8022771.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4379
Deuteranopia (green-blind)
#405075
Tritanopia (blue-blind)
#862C4A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #802277;
/* rgb */ color: rgb(128, 34, 119);
/* oklch */ color: oklch(43.5% 0.161 332.2);
Tailwind
colors: {
  custom: {
    50: '#a8679e',
    500: '#802277',
    950: '#000000',
  },
}
SCSS
$custom: #802277;
$custom-light: #a8679e;
$custom-dark: #000000;
JSON
{
  "hex": "#802277",
  "rgb": {
    "r": 128,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 305.745,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43463,
    "c": 0.16098,
    "h": 332.2
  },
  "luminance": 0.07065
}

Semantic roles & 50–950 ramp

primary
#802277
secondary
#4BB255
accent
#E15547
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #802277

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

Preview Lab → · Contrast checker → · Palette generator →

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