#8A307C#8A307C

#8A307C is a mid, vivid purple. Relative luminance 0.090; OKLCH L 46.8% C 0.152 H 334.4°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#8A307C
RGBrgb(138, 48, 124)
HSLhsl(309, 48%, 36%)
HSVhsv(309, 65%, 54%)
CMYKcmyk(0%, 65.2%, 10.1%, 45.9%)
CIE-LABlab(35.93, 47.41, -24.14)
CIE-LCHlch(35.93, 53.20, 333.01°)
OKLaboklab(46.76% 0.1375 -0.0658)
OKLCHoklch(46.76% 0.152 334.4)
XYZxyz(15.1764, 8.9736, 19.9976)
Luminance0.0897 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A307C #308A3E
analogous
#6B308A #8A307C #8A304F
triadic
#8A307C #7C8A30 #307C8A
tetradic
#8A307C #8A6B30 #308A3E #304F8A
square
#8A307C #8A6B30 #308A3E #304F8A
split-complementary
#8A307C #4F8A30 #308A6B
monochromatic
#2F102A #5D2053 #8A307C #B740A5 #CB69BC

Accessibility & contrast

On white

7.52
#8A307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A307C
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A307C#FFFFFF#000000##FFFFFF
##8A307C1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4C7E
Deuteranopia (green-blind)
#4C597A
Tritanopia (blue-blind)
#903651
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a307c;
/* rgb */ color: rgb(138, 48, 124);
/* oklch */ color: oklch(46.8% 0.152 334.4);
Tailwind
colors: {
  custom: {
    50: '#af6fa2',
    500: '#8a307c',
    950: '#000000',
  },
}
SCSS
$custom: #8a307c;
$custom-light: #af6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a307c",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 309.333,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.46759,
    "c": 0.15241,
    "h": 334.4
  },
  "luminance": 0.08972
}

Semantic roles & 50–950 ramp

primary
#8A307C
secondary
#64B270
accent
#D86550
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A307C

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

Preview Lab → · Contrast checker → · Palette generator →

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