#8A4F7C#8A4F7C

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

Color values

HEX#8A4F7C
RGBrgb(138, 79, 124)
HSLhsl(314, 27%, 43%)
HSVhsv(314, 43%, 54%)
CMYKcmyk(0%, 42.8%, 10.1%, 45.9%)
CIE-LABlab(41.92, 31.57, -14.90)
CIE-LCHlch(41.92, 34.91, 334.73°)
OKLaboklab(51.2% 0.0913 -0.04)
OKLCHoklch(51.2% 0.1 336.3)
XYZxyz(16.9153, 12.4514, 20.5773)
Luminance0.1245 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4F7C #4F8A5D
analogous
#7A4F8A #8A4F7C #8A4F5F
triadic
#8A4F7C #7C8A4F #4F7C8A
tetradic
#8A4F7C #8A7A4F #4F8A5D #4F5F8A
square
#8A4F7C #8A7A4F #4F8A5D #4F5F8A
split-complementary
#8A4F7C #5F8A4F #4F8A7A
monochromatic
#3C2236 #633959 #8A4F7C #AB6C9C #C193B6

Accessibility & contrast

On white

6.02
#8A4F7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A4F7C
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4F7C#FFFFFF#000000##FFFFFF
##8A4F7C1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#505D7E
Deuteranopia (green-blind)
#5F667A
Tritanopia (blue-blind)
#905160
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a4f7c;
/* rgb */ color: rgb(138, 79, 124);
/* oklch */ color: oklch(51.2% 0.100 336.3);
Tailwind
colors: {
  custom: {
    50: '#ad82a2',
    500: '#8a4f7c',
    950: '#000000',
  },
}
SCSS
$custom: #8a4f7c;
$custom-light: #ad82a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4f7c",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 124
  },
  "hsl": {
    "h": 314.237,
    "s": 27.189,
    "l": 42.549
  },
  "oklch": {
    "l": 0.512,
    "c": 0.0997,
    "h": 336.3
  },
  "luminance": 0.1245
}

Semantic roles & 50–950 ramp

primary
#8A4F7C
secondary
#87AE90
accent
#C47B64
background
#FAF8F9
surface
#F4EFF2
border
#CECACC
text
#100A0F
muted
#7F7C7E

Preview Lab

Preview with #8A4F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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