#8A338D#8A338D

#8A338D is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.0% C 0.163 H 326.4°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#8A338D
RGBrgb(138, 51, 141)
HSLhsl(298, 47%, 38%)
HSVhsv(298, 64%, 55%)
CMYKcmyk(2.1%, 63.8%, 0%, 44.7%)
CIE-LABlab(37.29, 49.07, -32.52)
CIE-LCHlch(37.29, 58.87, 326.47°)
OKLaboklab(48.03% 0.1354 -0.09)
OKLCHoklch(48.03% 0.163 326.4)
XYZxyz(16.4725, 9.6950, 26.1978)
Luminance0.0969 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A338D #368D33
analogous
#5D338D #8A338D #8D3363
triadic
#8A338D #8D8A33 #338D8A
tetradic
#8A338D #8D5D33 #368D33 #33638D
square
#8A338D #8D5D33 #368D33 #33638D
split-complementary
#8A338D #638D33 #338D5D
monochromatic
#321233 #5E2360 #8A338D #B643BA #C86FCB

Accessibility & contrast

On white

7.15
#8A338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8A338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A338D
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A338D#FFFFFF#000000##FFFFFF
##8A338D1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265190
Deuteranopia (green-blind)
#465C8B
Tritanopia (blue-blind)
#8E3F5B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a338d;
/* rgb */ color: rgb(138, 51, 141);
/* oklch */ color: oklch(48.0% 0.163 326.4);
Tailwind
colors: {
  custom: {
    50: '#af71af',
    500: '#8a338d',
    950: '#000000',
  },
}
SCSS
$custom: #8a338d;
$custom-light: #af71af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a338d",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 298,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.48031,
    "c": 0.16253,
    "h": 326.4
  },
  "luminance": 0.09694
}

Semantic roles & 50–950 ramp

primary
#8A338D
secondary
#6BB369
accent
#D75156
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A338D

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

Preview Lab → · Contrast checker → · Palette generator →

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