#8A306C#8A306C

#8A306C is a mid, vivid pink. Relative luminance 0.086; OKLCH L 46.0% C 0.140 H 343.2°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#8A306C
RGBrgb(138, 48, 108)
HSLhsl(320, 48%, 36%)
HSVhsv(320, 65%, 54%)
CMYKcmyk(0%, 65.2%, 21.7%, 45.9%)
CIE-LABlab(35.20, 44.88, -15.23)
CIE-LCHlch(35.20, 47.39, 341.26°)
OKLaboklab(45.99% 0.1345 -0.0406)
OKLCHoklch(45.99% 0.14 343.2)
XYZxyz(14.2454, 8.6012, 15.0944)
Luminance0.0860 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A306C #308A4E
analogous
#7B308A #8A306C #8A303F
triadic
#8A306C #6C8A30 #306C8A
tetradic
#8A306C #8A7B30 #308A4E #303F8A
square
#8A306C #8A7B30 #308A4E #303F8A
split-complementary
#8A306C #3F8A30 #308A7B
monochromatic
#2F1025 #5D2048 #8A306C #B74090 #CB69AA

Accessibility & contrast

On white

7.72
#8A306C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8A306C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A306C
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A306C#FFFFFF#000000##FFFFFF
##8A306C1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38496E
Deuteranopia (green-blind)
#52586A
Tritanopia (blue-blind)
#933049
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a306c;
/* rgb */ color: rgb(138, 48, 108);
/* oklch */ color: oklch(46.0% 0.140 343.2);
Tailwind
colors: {
  custom: {
    50: '#af6f96',
    500: '#8a306c',
    950: '#000000',
  },
}
SCSS
$custom: #8a306c;
$custom-light: #af6f96;
$custom-dark: #000000;
JSON
{
  "hex": "#8a306c",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 108
  },
  "hsl": {
    "h": 320,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45988,
    "c": 0.14048,
    "h": 343.2
  },
  "luminance": 0.086
}

Semantic roles & 50–950 ramp

primary
#8A306C
secondary
#64B27E
accent
#D87D50
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080D
muted
#807B7E

Preview Lab

Preview with #8A306C

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

Preview Lab → · Contrast checker → · Palette generator →

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