#8A308C#8A308C

#8A308C is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.6% C 0.166 H 326.9°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#8A308C
RGBrgb(138, 48, 140)
HSLhsl(299, 49%, 37%)
HSVhsv(299, 66%, 55%)
CMYKcmyk(1.4%, 65.7%, 0%, 45.1%)
CIE-LABlab(36.77, 50.19, -32.73)
CIE-LCHlch(36.77, 59.92, 326.89°)
OKLaboklab(47.63% 0.139 -0.0906)
OKLCHoklch(47.63% 0.166 326.9)
XYZxyz(16.2715, 9.4117, 25.7655)
Luminance0.0941 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A308C #328C30
analogous
#5C308C #8A308C #8C3060
triadic
#8A308C #8C8A30 #308C8A
tetradic
#8A308C #8C5C30 #328C30 #30608C
square
#8A308C #8C5C30 #328C30 #30608C
split-complementary
#8A308C #608C30 #308C5C
monochromatic
#301131 #5D205E #8A308C #B740BA #CA6ACC

Accessibility & contrast

On white

7.29
#8A308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8A308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A308C
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A308C#FFFFFF#000000##FFFFFF
##8A308C1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224F8F
Deuteranopia (green-blind)
#455B8A
Tritanopia (blue-blind)
#8E3D5A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a308c;
/* rgb */ color: rgb(138, 48, 140);
/* oklch */ color: oklch(47.6% 0.166 326.9);
Tailwind
colors: {
  custom: {
    50: '#af70ae',
    500: '#8a308c',
    950: '#000000',
  },
}
SCSS
$custom: #8a308c;
$custom-light: #af70ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a308c",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 298.696,
    "s": 48.936,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47633,
    "c": 0.16586,
    "h": 326.9
  },
  "luminance": 0.09411
}

Semantic roles & 50–950 ramp

primary
#8A308C
secondary
#66B364
accent
#D84F52
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A308C

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

Preview Lab → · Contrast checker → · Palette generator →

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