#8A3E7B#8A3E7B

#8A3E7B is a mid, vivid pink. Relative luminance 0.103; OKLCH L 48.5% C 0.129 H 335.5°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8A3E7B
RGBrgb(138, 62, 123)
HSLhsl(312, 38%, 39%)
HSVhsv(312, 55%, 54%)
CMYKcmyk(0%, 55.1%, 10.9%, 45.9%)
CIE-LABlab(38.34, 40.58, -19.79)
CIE-LCHlch(38.34, 45.15, 334.00°)
OKLaboklab(48.51% 0.1178 -0.0536)
OKLCHoklch(48.51% 0.129 335.5)
XYZxyz(15.7791, 10.2797, 19.8882)
Luminance0.1028 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3E7B #3E8A4D
analogous
#733E8A #8A3E7B #8A3E55
triadic
#8A3E7B #7B8A3E #3E7B8A
tetradic
#8A3E7B #8A733E #3E8A4D #3E558A
square
#8A3E7B #8A733E #3E8A4D #3E558A
split-complementary
#8A3E7B #558A3E #3E8A73
monochromatic
#361830 #602B55 #8A3E7B #B2539F #C57EB7

Accessibility & contrast

On white

6.87
#8A3E7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8A3E7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3E7B
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3E7B#FFFFFF#000000##FFFFFF
##8A3E7B1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E537D
Deuteranopia (green-blind)
#545E79
Tritanopia (blue-blind)
#904257
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a3e7b;
/* rgb */ color: rgb(138, 62, 123);
/* oklch */ color: oklch(48.5% 0.129 335.5);
Tailwind
colors: {
  custom: {
    50: '#ae77a1',
    500: '#8a3e7b',
    950: '#000000',
  },
}
SCSS
$custom: #8a3e7b;
$custom-light: #ae77a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3e7b",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 123
  },
  "hsl": {
    "h": 311.842,
    "s": 38,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48511,
    "c": 0.1294,
    "h": 335.5
  },
  "luminance": 0.10279
}

Semantic roles & 50–950 ramp

primary
#8A3E7B
secondary
#75AF80
accent
#CE715A
background
#FAF7F9
surface
#F5EDF2
border
#CFC8CC
text
#11090F
muted
#807B7E

Preview Lab

Preview with #8A3E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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