#8A307B#8A307B

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

Color values

HEX#8A307B
RGBrgb(138, 48, 123)
HSLhsl(310, 48%, 36%)
HSVhsv(310, 65%, 54%)
CMYKcmyk(0%, 65.2%, 10.9%, 45.9%)
CIE-LABlab(35.88, 47.24, -23.60)
CIE-LCHlch(35.88, 52.80, 333.46°)
OKLaboklab(46.71% 0.1373 -0.0643)
OKLCHoklch(46.71% 0.152 334.9)
XYZxyz(15.1135, 8.9485, 19.6663)
Luminance0.0895 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A307B #308A3F
analogous
#6C308A #8A307B #8A304E
triadic
#8A307B #7B8A30 #307B8A
tetradic
#8A307B #8A6C30 #308A3F #304E8A
square
#8A307B #8A6C30 #308A3F #304E8A
split-complementary
#8A307B #4E8A30 #308A6C
monochromatic
#2F102A #5D2053 #8A307B #B740A3 #CB69BB

Accessibility & contrast

On white

7.53
#8A307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8A307B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A307B
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A307B#FFFFFF#000000##FFFFFF
##8A307B1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304C7D
Deuteranopia (green-blind)
#4D5979
Tritanopia (blue-blind)
#913651
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a307b;
/* rgb */ color: rgb(138, 48, 123);
/* oklch */ color: oklch(46.7% 0.152 334.9);
Tailwind
colors: {
  custom: {
    50: '#af6fa1',
    500: '#8a307b',
    950: '#000000',
  },
}
SCSS
$custom: #8a307b;
$custom-light: #af6fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a307b",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 310,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.46708,
    "c": 0.15162,
    "h": 334.9
  },
  "luminance": 0.08947
}

Semantic roles & 50–950 ramp

primary
#8A307B
secondary
#64B271
accent
#D86750
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080F
muted
#807B7E

Preview Lab

Preview with #8A307B

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

Preview Lab → · Contrast checker → · Palette generator →

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