#8A2678#8A2678

#8A2678 is a mid, vivid pink. Relative luminance 0.081; OKLCH L 45.5% C 0.163 H 336.1°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#8A2678
RGBrgb(138, 38, 120)
HSLhsl(311, 57%, 35%)
HSVhsv(311, 72%, 54%)
CMYKcmyk(0%, 72.5%, 13%, 45.9%)
CIE-LABlab(34.29, 50.81, -24.21)
CIE-LCHlch(34.29, 56.28, 334.52°)
OKLaboklab(45.5% 0.1489 -0.0659)
OKLCHoklch(45.5% 0.163 336.1)
XYZxyz(14.5647, 8.1469, 18.5711)
Luminance0.0815 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2678 #268A38
analogous
#6A268A #8A2678 #8A2646
triadic
#8A2678 #788A26 #26788A
tetradic
#8A2678 #8A6A26 #268A38 #26468A
square
#8A2678 #8A6A26 #268A38 #26468A
split-complementary
#8A2678 #468A26 #268A6A
monochromatic
#2A0C25 #5A194E #8A2678 #BA33A2 #D159BC

Accessibility & contrast

On white

7.99
#8A2678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8A2678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2678
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2678#FFFFFF#000000##FFFFFF
##8A26781.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27477A
Deuteranopia (green-blind)
#495676
Tritanopia (blue-blind)
#912D4C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2678;
/* rgb */ color: rgb(138, 38, 120);
/* oklch */ color: oklch(45.5% 0.163 336.1);
Tailwind
colors: {
  custom: {
    50: '#af6a9f',
    500: '#8a2678',
    950: '#000000',
  },
}
SCSS
$custom: #8a2678;
$custom-light: #af6a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2678",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 120
  },
  "hsl": {
    "h": 310.8,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45499,
    "c": 0.16285,
    "h": 336.1
  },
  "luminance": 0.08146
}

Semantic roles & 50–950 ramp

primary
#8A2678
secondary
#56B667
accent
#E06348
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2678

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

Preview Lab → · Contrast checker → · Palette generator →

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