#8A2F6D#8A2F6D

#8A2F6D is a mid, vivid pink. Relative luminance 0.085; OKLCH L 45.9% C 0.143 H 342.5°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#8A2F6D
RGBrgb(138, 47, 109)
HSLhsl(319, 49%, 36%)
HSVhsv(319, 66%, 54%)
CMYKcmyk(0%, 65.9%, 21%, 45.9%)
CIE-LABlab(35.09, 45.47, -16.04)
CIE-LCHlch(35.09, 48.22, 340.57°)
OKLaboklab(45.92% 0.1361 -0.0429)
OKLCHoklch(45.92% 0.143 342.5)
XYZxyz(14.2585, 8.5418, 15.3628)
Luminance0.0854 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F6D #2F8A4C
analogous
#7A2F8A #8A2F6D #8A2F40
triadic
#8A2F6D #6D8A2F #2F6D8A
tetradic
#8A2F6D #8A7A2F #2F8A4C #2F408A
square
#8A2F6D #8A7A2F #2F8A4C #2F408A
split-complementary
#8A2F6D #408A2F #2F8A7A
monochromatic
#2F1025 #5C1F49 #8A2F6D #B83F91 #CC68AC

Accessibility & contrast

On white

7.75
#8A2F6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8A2F6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F6D
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F6D#FFFFFF#000000##FFFFFF
##8A2F6D1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36496F
Deuteranopia (green-blind)
#51586B
Tritanopia (blue-blind)
#923049
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2f6d;
/* rgb */ color: rgb(138, 47, 109);
/* oklch */ color: oklch(45.9% 0.143 342.5);
Tailwind
colors: {
  custom: {
    50: '#af6e97',
    500: '#8a2f6d',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f6d;
$custom-light: #af6e97;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f6d",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 109
  },
  "hsl": {
    "h": 319.121,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45915,
    "c": 0.14265,
    "h": 342.5
  },
  "luminance": 0.0854
}

Semantic roles & 50–950 ramp

primary
#8A2F6D
secondary
#62B37C
accent
#D97B4F
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080D
muted
#807B7E

Preview Lab

Preview with #8A2F6D

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

Preview Lab → · Contrast checker → · Palette generator →

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