#8A2279#8A2279

#8A2279 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.168 H 335.5°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#8A2279
RGBrgb(138, 34, 121)
HSLhsl(310, 60%, 34%)
HSVhsv(310, 75%, 54%)
CMYKcmyk(0%, 75.4%, 12.3%, 45.9%)
CIE-LABlab(33.83, 52.39, -25.55)
CIE-LCHlch(33.83, 58.29, 334.00°)
OKLaboklab(45.19% 0.1532 -0.0697)
OKLCHoklch(45.19% 0.168 335.5)
XYZxyz(14.5047, 7.9291, 18.8520)
Luminance0.0793 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2279 #228A33
analogous
#67228A #8A2279 #8A2245
triadic
#8A2279 #798A22 #22798A
tetradic
#8A2279 #8A6722 #228A33 #22458A
square
#8A2279 #8A6722 #228A33 #22458A
split-complementary
#8A2279 #458A22 #228A67
monochromatic
#280A23 #59164E #8A2279 #BB2EA4 #D452BF

Accessibility & contrast

On white

8.12
#8A2279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8A2279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2279
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2279#FFFFFF#000000##FFFFFF
##8A22791.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22467B
Deuteranopia (green-blind)
#475577
Tritanopia (blue-blind)
#912A4B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a2279;
/* rgb */ color: rgb(138, 34, 121);
/* oklch */ color: oklch(45.2% 0.168 335.5);
Tailwind
colors: {
  custom: {
    50: '#b068a0',
    500: '#8a2279',
    950: '#000000',
  },
}
SCSS
$custom: #8a2279;
$custom-light: #b068a0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2279",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 309.808,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45189,
    "c": 0.16835,
    "h": 335.5
  },
  "luminance": 0.07928
}

Semantic roles & 50–950 ramp

primary
#8A2279
secondary
#50B861
accent
#E45E44
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2279

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

Preview Lab → · Contrast checker → · Palette generator →

#8A2279 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva