#8A4F7B#8A4F7B

#8A4F7B is a mid, moderate pink. Relative luminance 0.124; OKLCH L 51.2% C 0.099 H 337.1°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#8A4F7B
RGBrgb(138, 79, 123)
HSLhsl(315, 27%, 43%)
HSVhsv(315, 43%, 54%)
CMYKcmyk(0%, 42.8%, 10.9%, 45.9%)
CIE-LABlab(41.89, 31.39, -14.35)
CIE-LCHlch(41.89, 34.51, 335.43°)
OKLaboklab(51.16% 0.091 -0.0385)
OKLCHoklch(51.16% 0.099 337.1)
XYZxyz(16.8524, 12.4263, 20.2459)
Luminance0.1242 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4F7B #4F8A5E
analogous
#7B4F8A #8A4F7B #8A4F5E
triadic
#8A4F7B #7B8A4F #4F7B8A
tetradic
#8A4F7B #8A7B4F #4F8A5E #4F5E8A
square
#8A4F7B #8A7B4F #4F8A5E #4F5E8A
split-complementary
#8A4F7B #5E8A4F #4F8A7B
monochromatic
#3C2236 #633958 #8A4F7B #AB6C9B #C193B5

Accessibility & contrast

On white

6.03
#8A4F7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8A4F7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4F7B
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4F7B#FFFFFF#000000##FFFFFF
##8A4F7B1.006.033.496.03
#FFFFFF6.031.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#505D7D
Deuteranopia (green-blind)
#5F6679
Tritanopia (blue-blind)
#90515F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a4f7b;
/* rgb */ color: rgb(138, 79, 123);
/* oklch */ color: oklch(51.2% 0.099 337.1);
Tailwind
colors: {
  custom: {
    50: '#ad82a1',
    500: '#8a4f7b',
    950: '#000000',
  },
}
SCSS
$custom: #8a4f7b;
$custom-light: #ad82a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4f7b",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 123
  },
  "hsl": {
    "h": 315.254,
    "s": 27.189,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51158,
    "c": 0.09883,
    "h": 337.1
  },
  "luminance": 0.12425
}

Semantic roles & 50–950 ramp

primary
#8A4F7B
secondary
#87AE91
accent
#C47C64
background
#FAF8F9
surface
#F4EFF2
border
#CECACC
text
#100A0F
muted
#7F7C7E

Preview Lab

Preview with #8A4F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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