#8A306B#8A306B

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

Color values

HEX#8A306B
RGBrgb(138, 48, 107)
HSLhsl(321, 48%, 36%)
HSVhsv(321, 65%, 54%)
CMYKcmyk(0%, 65.2%, 22.5%, 45.9%)
CIE-LABlab(35.16, 44.73, -14.66)
CIE-LCHlch(35.16, 47.07, 341.86°)
OKLaboklab(45.94% 0.1343 -0.039)
OKLCHoklch(45.94% 0.14 343.8)
XYZxyz(14.1925, 8.5801, 14.8157)
Luminance0.0858 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A306B #308A4F
analogous
#7C308A #8A306B #8A303E
triadic
#8A306B #6B8A30 #306B8A
tetradic
#8A306B #8A7C30 #308A4F #303E8A
square
#8A306B #8A7C30 #308A4F #303E8A
split-complementary
#8A306B #3E8A30 #308A7C
monochromatic
#2F1025 #5D2048 #8A306B #B7408E #CB69A9

Accessibility & contrast

On white

7.73
#8A306B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A306B
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A306B#FFFFFF#000000##FFFFFF
##8A306B1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38496D
Deuteranopia (green-blind)
#525869
Tritanopia (blue-blind)
#933049
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a306b;
/* rgb */ color: rgb(138, 48, 107);
/* oklch */ color: oklch(45.9% 0.140 343.8);
Tailwind
colors: {
  custom: {
    50: '#af6e95',
    500: '#8a306b',
    950: '#000000',
  },
}
SCSS
$custom: #8a306b;
$custom-light: #af6e95;
$custom-dark: #000000;
JSON
{
  "hex": "#8a306b",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 107
  },
  "hsl": {
    "h": 320.667,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45943,
    "c": 0.13981,
    "h": 343.8
  },
  "luminance": 0.08579
}

Semantic roles & 50–950 ramp

primary
#8A306B
secondary
#64B27F
accent
#D87F50
background
#FBF6F9
surface
#F6ECF1
border
#D0C7CB
text
#11080D
muted
#807B7E

Preview Lab

Preview with #8A306B

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

Preview Lab → · Contrast checker → · Palette generator →

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