#8A307E#8A307E

#8A307E is a mid, vivid purple. Relative luminance 0.090; OKLCH L 46.9% C 0.154 H 333.4°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#8A307E
RGBrgb(138, 48, 126)
HSLhsl(308, 48%, 36%)
HSVhsv(308, 65%, 54%)
CMYKcmyk(0%, 65.2%, 8.7%, 45.9%)
CIE-LABlab(36.03, 47.74, -25.24)
CIE-LCHlch(36.03, 54.00, 332.14°)
OKLaboklab(46.86% 0.1377 -0.069)
OKLCHoklch(46.86% 0.154 333.4)
XYZxyz(15.3041, 9.0247, 20.6705)
Luminance0.0902 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A307E #308A3C
analogous
#69308A #8A307E #8A3051
triadic
#8A307E #7E8A30 #307E8A
tetradic
#8A307E #8A6930 #308A3C #30518A
square
#8A307E #8A6930 #308A3C #30518A
split-complementary
#8A307E #518A30 #308A69
monochromatic
#2F102B #5D2055 #8A307E #B740A7 #CB69BE

Accessibility & contrast

On white

7.49
#8A307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#8A307E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A307E
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A307E#FFFFFF#000000##FFFFFF
##8A307E1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4C80
Deuteranopia (green-blind)
#4B597C
Tritanopia (blue-blind)
#903752
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a307e;
/* rgb */ color: rgb(138, 48, 126);
/* oklch */ color: oklch(46.9% 0.154 333.4);
Tailwind
colors: {
  custom: {
    50: '#af6fa3',
    500: '#8a307e',
    950: '#000000',
  },
}
SCSS
$custom: #8a307e;
$custom-light: #af6fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a307e",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 308,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.46863,
    "c": 0.15403,
    "h": 333.4
  },
  "luminance": 0.09024
}

Semantic roles & 50–950 ramp

primary
#8A307E
secondary
#64B26E
accent
#D86250
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A307E

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

Preview Lab → · Contrast checker → · Palette generator →

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