#8A2E7A#8A2E7A

#8A2E7A is a mid, vivid pink. Relative luminance 0.088; OKLCH L 46.4% C 0.154 H 335.4°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#8A2E7A
RGBrgb(138, 46, 122)
HSLhsl(310, 50%, 36%)
HSVhsv(310, 67%, 54%)
CMYKcmyk(0%, 66.7%, 11.6%, 45.9%)
CIE-LABlab(35.53, 47.94, -23.53)
CIE-LCHlch(35.53, 53.40, 333.85°)
OKLaboklab(46.43% 0.1397 -0.0641)
OKLCHoklch(46.43% 0.154 335.4)
XYZxyz(14.9712, 8.7636, 19.3116)
Luminance0.0876 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E7A #2E8A3E
analogous
#6C2E8A #8A2E7A #8A2E4C
triadic
#8A2E7A #7A8A2E #2E7A8A
tetradic
#8A2E7A #8A6C2E #2E8A3E #2E4C8A
square
#8A2E7A #8A6C2E #2E8A3E #2E4C8A
split-complementary
#8A2E7A #4C8A2E #2E8A6C
monochromatic
#2E0F29 #5C1F51 #8A2E7A #B83DA3 #CC66BA

Accessibility & contrast

On white

7.63
#8A2E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8A2E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E7A
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E7A#FFFFFF#000000##FFFFFF
##8A2E7A1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4B7C
Deuteranopia (green-blind)
#4C5978
Tritanopia (blue-blind)
#913450
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2e7a;
/* rgb */ color: rgb(138, 46, 122);
/* oklch */ color: oklch(46.4% 0.154 335.4);
Tailwind
colors: {
  custom: {
    50: '#af6ea0',
    500: '#8a2e7a',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e7a;
$custom-light: #af6ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e7a",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 122
  },
  "hsl": {
    "h": 310.435,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4643,
    "c": 0.1537,
    "h": 335.4
  },
  "luminance": 0.08762
}

Semantic roles & 50–950 ramp

primary
#8A2E7A
secondary
#61B36F
accent
#DA664E
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080F
muted
#807B7E

Preview Lab

Preview with #8A2E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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