#8A1274#8A1274

#8A1274 is a dark, vivid pink. Relative luminance 0.071; OKLCH L 43.8% C 0.180 H 337.5°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#8A1274
RGBrgb(138, 18, 116)
HSLhsl(311, 77%, 31%)
HSVhsv(311, 87%, 54%)
CMYKcmyk(0%, 87%, 15.9%, 45.9%)
CIE-LABlab(32.03, 56.09, -25.22)
CIE-LCHlch(32.03, 61.50, 335.79°)
OKLaboklab(43.81% 0.1661 -0.0687)
OKLCHoklch(43.81% 0.18 337.5)
XYZxyz(13.8503, 7.0982, 17.1603)
Luminance0.0710 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1274 #128A28
analogous
#64128A #8A1274 #8A1238
triadic
#8A1274 #748A12 #12748A
tetradic
#8A1274 #8A6412 #128A28 #12388A
square
#8A1274 #8A6412 #128A28 #12388A
split-complementary
#8A1274 #388A12 #128A64
monochromatic
#1E0419 #540B46 #8A1274 #C019A2 #E432C4

Accessibility & contrast

On white

8.68
#8A1274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#8A1274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1274
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1274#FFFFFF#000000##FFFFFF
##8A12741.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184076
Deuteranopia (green-blind)
#455271
Tritanopia (blue-blind)
#921C44
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #8a1274;
/* rgb */ color: rgb(138, 18, 116);
/* oklch */ color: oklch(43.8% 0.180 337.5);
Tailwind
colors: {
  custom: {
    50: '#b0639c',
    500: '#8a1274',
    950: '#000000',
  },
}
SCSS
$custom: #8a1274;
$custom-light: #b0639c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1274",
  "rgb": {
    "r": 138,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 311,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.43808,
    "c": 0.17976,
    "h": 337.5
  },
  "luminance": 0.07097
}

Semantic roles & 50–950 ramp

primary
#8A1274
secondary
#39BF52
accent
#F35734
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #8A1274

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

Preview Lab → · Contrast checker → · Palette generator →

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