#8A307A#8A307A

#8A307A is a mid, vivid pink. Relative luminance 0.089; OKLCH L 46.7% C 0.151 H 335.4°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#8A307A
RGBrgb(138, 48, 122)
HSLhsl(311, 48%, 36%)
HSVhsv(311, 65%, 54%)
CMYKcmyk(0%, 65.2%, 11.6%, 45.9%)
CIE-LABlab(35.84, 47.07, -23.05)
CIE-LCHlch(35.84, 52.41, 333.91°)
OKLaboklab(46.66% 0.1372 -0.0627)
OKLCHoklch(46.66% 0.151 335.4)
XYZxyz(15.0512, 8.9235, 19.3383)
Luminance0.0892 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A307A #308A40
analogous
#6D308A #8A307A #8A304D
triadic
#8A307A #7A8A30 #307A8A
tetradic
#8A307A #8A6D30 #308A40 #304D8A
square
#8A307A #8A6D30 #308A40 #304D8A
split-complementary
#8A307A #4D8A30 #308A6D
monochromatic
#2F102A #5D2052 #8A307A #B740A2 #CB69BA

Accessibility & contrast

On white

7.54
#8A307A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8A307A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A307A
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A307A#FFFFFF#000000##FFFFFF
##8A307A1.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304C7C
Deuteranopia (green-blind)
#4D5978
Tritanopia (blue-blind)
#913650
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a307a;
/* rgb */ color: rgb(138, 48, 122);
/* oklch */ color: oklch(46.7% 0.151 335.4);
Tailwind
colors: {
  custom: {
    50: '#af6fa0',
    500: '#8a307a',
    950: '#000000',
  },
}
SCSS
$custom: #8a307a;
$custom-light: #af6fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a307a",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 122
  },
  "hsl": {
    "h": 310.667,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.46657,
    "c": 0.15082,
    "h": 335.4
  },
  "luminance": 0.08922
}

Semantic roles & 50–950 ramp

primary
#8A307A
secondary
#64B272
accent
#D86850
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080F
muted
#807B7E

Preview Lab

Preview with #8A307A

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

Preview Lab → · Contrast checker → · Palette generator →

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