#8A308E#8A308E

#8A308E is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.7% C 0.168 H 326.1°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#8A308E
RGBrgb(138, 48, 142)
HSLhsl(297, 49%, 37%)
HSVhsv(297, 66%, 56%)
CMYKcmyk(2.8%, 66.2%, 0%, 44.3%)
CIE-LABlab(36.88, 50.56, -33.78)
CIE-LCHlch(36.88, 60.81, 326.25°)
OKLaboklab(47.75% 0.1391 -0.0936)
OKLCHoklch(47.75% 0.168 326.1)
XYZxyz(16.4203, 9.4712, 26.5492)
Luminance0.0947 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A308E #348E30
analogous
#5B308E #8A308E #8E3063
triadic
#8A308E #8E8A30 #308E8A
tetradic
#8A308E #8E5B30 #348E30 #30638E
square
#8A308E #8E5B30 #348E30 #30638E
split-complementary
#8A308E #638E30 #308E5B
monochromatic
#311133 #5E2160 #8A308E #B63FBC #C96BCD

Accessibility & contrast

On white

7.26
#8A308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A308E
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A308E#FFFFFF#000000##FFFFFF
##8A308E1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204F91
Deuteranopia (green-blind)
#445B8C
Tritanopia (blue-blind)
#8E3E5B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a308e;
/* rgb */ color: rgb(138, 48, 142);
/* oklch */ color: oklch(47.7% 0.168 326.1);
Tailwind
colors: {
  custom: {
    50: '#af70af',
    500: '#8a308e',
    950: '#000000',
  },
}
SCSS
$custom: #8a308e;
$custom-light: #af70af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a308e",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 297.447,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47749,
    "c": 0.16762,
    "h": 326.1
  },
  "luminance": 0.0947
}

Semantic roles & 50–950 ramp

primary
#8A308E
secondary
#69B465
accent
#D94F55
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A308E

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

Preview Lab → · Contrast checker → · Palette generator →

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