#8A308D#8A308D

#8A308D is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.7% C 0.167 H 326.5°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8A308D
RGBrgb(138, 48, 141)
HSLhsl(298, 49%, 37%)
HSVhsv(298, 66%, 55%)
CMYKcmyk(2.1%, 66%, 0%, 44.7%)
CIE-LABlab(36.82, 50.38, -33.26)
CIE-LCHlch(36.82, 60.36, 326.57°)
OKLaboklab(47.69% 0.139 -0.0921)
OKLCHoklch(47.69% 0.167 326.5)
XYZxyz(16.3456, 9.4413, 26.1556)
Luminance0.0944 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A308D #338D30
analogous
#5C308D #8A308D #8D3061
triadic
#8A308D #8D8A30 #308D8A
tetradic
#8A308D #8D5C30 #338D30 #30618D
square
#8A308D #8D5C30 #338D30 #30618D
split-complementary
#8A308D #618D30 #308D5C
monochromatic
#311132 #5D205F #8A308D #B740BB #C96BCD

Accessibility & contrast

On white

7.27
#8A308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8A308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A308D
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A308D#FFFFFF#000000##FFFFFF
##8A308D1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214F90
Deuteranopia (green-blind)
#445B8B
Tritanopia (blue-blind)
#8E3D5A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a308d;
/* rgb */ color: rgb(138, 48, 141);
/* oklch */ color: oklch(47.7% 0.167 326.5);
Tailwind
colors: {
  custom: {
    50: '#af70af',
    500: '#8a308d',
    950: '#000000',
  },
}
SCSS
$custom: #8a308d;
$custom-light: #af70af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a308d",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 298.065,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47691,
    "c": 0.16675,
    "h": 326.5
  },
  "luminance": 0.0944
}

Semantic roles & 50–950 ramp

primary
#8A308D
secondary
#67B465
accent
#D94F53
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A308D

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

Preview Lab → · Contrast checker → · Palette generator →

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