#8A315C#8A315C

#8A315C is a mid, vivid pink. Relative luminance 0.084; OKLCH L 45.4% C 0.129 H 353.5°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#8A315C
RGBrgb(138, 49, 92)
HSLhsl(331, 48%, 37%)
HSVhsv(331, 64%, 54%)
CMYKcmyk(0%, 64.5%, 33.3%, 45.9%)
CIE-LABlab(34.75, 42.20, -5.73)
CIE-LCHlch(34.75, 42.59, 352.27°)
OKLaboklab(45.45% 0.1286 -0.0146)
OKLCHoklch(45.45% 0.129 353.5)
XYZxyz(13.5120, 8.3740, 11.0279)
Luminance0.0837 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A315C #318A5F
analogous
#8A3189 #8A315C #8A3231
triadic
#8A315C #5C8A31 #315C8A
tetradic
#8A315C #898A31 #318A5F #32318A
square
#8A315C #898A31 #318A5F #32318A
split-complementary
#8A315C #318A32 #31898A
monochromatic
#301120 #5D213E #8A315C #B7417A #CA6B99

Accessibility & contrast

On white

7.85
#8A315C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8A315C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A315C
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A315C#FFFFFF#000000##FFFFFF
##8A315C1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F475D
Deuteranopia (green-blind)
#57585A
Tritanopia (blue-blind)
#942B42
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a315c;
/* rgb */ color: rgb(138, 49, 92);
/* oklch */ color: oklch(45.4% 0.129 353.5);
Tailwind
colors: {
  custom: {
    50: '#af6f8a',
    500: '#8a315c',
    950: '#000000',
  },
}
SCSS
$custom: #8a315c;
$custom-light: #af6f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a315c",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 92
  },
  "hsl": {
    "h": 331.011,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45448,
    "c": 0.12947,
    "h": 353.5
  },
  "luminance": 0.08373
}

Semantic roles & 50–950 ramp

primary
#8A315C
secondary
#65B28D
accent
#D79651
background
#FBF6F8
surface
#F6ECF0
border
#D0C7CB
text
#11080B
muted
#807B7C

Preview Lab

Preview with #8A315C

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

Preview Lab → · Contrast checker → · Palette generator →

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