#8A315F#8A315F

#8A315F is a mid, vivid pink. Relative luminance 0.084; OKLCH L 45.6% C 0.131 H 351.5°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#8A315F
RGBrgb(138, 49, 95)
HSLhsl(329, 48%, 37%)
HSVhsv(329, 64%, 54%)
CMYKcmyk(0%, 64.5%, 31.2%, 45.9%)
CIE-LABlab(34.86, 42.60, -7.49)
CIE-LCHlch(34.86, 43.25, 350.03°)
OKLaboklab(45.56% 0.1296 -0.0193)
OKLCHoklch(45.56% 0.131 351.5)
XYZxyz(13.6457, 8.4275, 11.7323)
Luminance0.0843 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A315F #318A5C
analogous
#89318A #8A315F #8A3132
triadic
#8A315F #5F8A31 #315F8A
tetradic
#8A315F #8A8931 #318A5C #31328A
square
#8A315F #8A8931 #318A5C #31328A
split-complementary
#8A315F #328A31 #318A89
monochromatic
#301121 #5D2140 #8A315F #B7417E #CA6B9C

Accessibility & contrast

On white

7.82
#8A315F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8A315F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A315F
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A315F#FFFFFF#000000##FFFFFF
##8A315F1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E4860
Deuteranopia (green-blind)
#56585D
Tritanopia (blue-blind)
#942C44
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a315f;
/* rgb */ color: rgb(138, 49, 95);
/* oklch */ color: oklch(45.6% 0.131 351.5);
Tailwind
colors: {
  custom: {
    50: '#af6f8c',
    500: '#8a315f',
    950: '#000000',
  },
}
SCSS
$custom: #8a315f;
$custom-light: #af6f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a315f",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 95
  },
  "hsl": {
    "h": 328.989,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45564,
    "c": 0.13103,
    "h": 351.5
  },
  "luminance": 0.08426
}

Semantic roles & 50–950 ramp

primary
#8A315F
secondary
#65B28A
accent
#D79251
background
#FBF6F8
surface
#F6ECF0
border
#D0C7CB
text
#11080C
muted
#807B7D

Preview Lab

Preview with #8A315F

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

Preview Lab → · Contrast checker → · Palette generator →

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