#8A2F6C#8A2F6C

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

Color values

HEX#8A2F6C
RGBrgb(138, 47, 108)
HSLhsl(320, 49%, 36%)
HSVhsv(320, 66%, 54%)
CMYKcmyk(0%, 65.9%, 21.7%, 45.9%)
CIE-LABlab(35.04, 45.32, -15.47)
CIE-LCHlch(35.04, 47.89, 341.15°)
OKLaboklab(45.87% 0.1358 -0.0413)
OKLCHoklch(45.87% 0.142 343.1)
XYZxyz(14.2049, 8.5204, 15.0809)
Luminance0.0852 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F6C #2F8A4D
analogous
#7B2F8A #8A2F6C #8A2F3F
triadic
#8A2F6C #6C8A2F #2F6C8A
tetradic
#8A2F6C #8A7B2F #2F8A4D #2F3F8A
square
#8A2F6C #8A7B2F #2F8A4D #2F3F8A
split-complementary
#8A2F6C #3F8A2F #2F8A7B
monochromatic
#2F1025 #5C1F48 #8A2F6C #B83F90 #CC68AB

Accessibility & contrast

On white

7.77
#8A2F6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8A2F6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F6C
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F6C#FFFFFF#000000##FFFFFF
##8A2F6C1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37496E
Deuteranopia (green-blind)
#52586A
Tritanopia (blue-blind)
#932F49
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2f6c;
/* rgb */ color: rgb(138, 47, 108);
/* oklch */ color: oklch(45.9% 0.142 343.1);
Tailwind
colors: {
  custom: {
    50: '#af6e96',
    500: '#8a2f6c',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f6c;
$custom-light: #af6e96;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f6c",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 108
  },
  "hsl": {
    "h": 319.78,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45869,
    "c": 0.14197,
    "h": 343.1
  },
  "luminance": 0.08519
}

Semantic roles & 50–950 ramp

primary
#8A2F6C
secondary
#62B37D
accent
#D97C4F
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080D
muted
#807B7E

Preview Lab

Preview with #8A2F6C

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

Preview Lab → · Contrast checker → · Palette generator →

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