#8A2F5B#8A2F5B

#8A2F5B is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.2% C 0.132 H 353.8°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#8A2F5B
RGBrgb(138, 47, 91)
HSLhsl(331, 49%, 36%)
HSVhsv(331, 66%, 54%)
CMYKcmyk(0%, 65.9%, 34.1%, 45.9%)
CIE-LABlab(34.38, 42.98, -5.63)
CIE-LCHlch(34.38, 43.35, 352.53°)
OKLaboklab(45.16% 0.1312 -0.0144)
OKLCHoklch(45.16% 0.132 353.8)
XYZxyz(13.3868, 8.1931, 10.7719)
Luminance0.0819 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F5B #2F8A5E
analogous
#8A2F89 #8A2F5B #8A312F
triadic
#8A2F5B #5B8A2F #2F5B8A
tetradic
#8A2F5B #898A2F #2F8A5E #312F8A
square
#8A2F5B #898A2F #2F8A5E #312F8A
split-complementary
#8A2F5B #2F8A31 #2F898A
monochromatic
#2F101F #5C1F3D #8A2F5B #B83F79 #CC6898

Accessibility & contrast

On white

7.96
#8A2F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8A2F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F5B
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F5B#FFFFFF#000000##FFFFFF
##8A2F5B1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D465C
Deuteranopia (green-blind)
#565759
Tritanopia (blue-blind)
#942941
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2f5b;
/* rgb */ color: rgb(138, 47, 91);
/* oklch */ color: oklch(45.2% 0.132 353.8);
Tailwind
colors: {
  custom: {
    50: '#b06e89',
    500: '#8a2f5b',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f5b;
$custom-light: #b06e89;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f5b",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 91
  },
  "hsl": {
    "h": 330.989,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45164,
    "c": 0.13193,
    "h": 353.8
  },
  "luminance": 0.08192
}

Semantic roles & 50–950 ramp

primary
#8A2F5B
secondary
#62B38C
accent
#D9964F
background
#FBF6F8
surface
#F6ECF0
border
#D0C7CB
text
#11070B
muted
#807A7C

Preview Lab

Preview with #8A2F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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