#8A338E#8A338E

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

Color values

HEX#8A338E
RGBrgb(138, 51, 142)
HSLhsl(297, 47%, 38%)
HSVhsv(297, 64%, 56%)
CMYKcmyk(2.8%, 64.1%, 0%, 44.3%)
CIE-LABlab(37.34, 49.26, -33.04)
CIE-LCHlch(37.34, 59.31, 326.15°)
OKLaboklab(48.09% 0.1354 -0.0915)
OKLCHoklch(48.09% 0.163 326)
XYZxyz(16.5472, 9.7249, 26.5915)
Luminance0.0972 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A338E #378E33
analogous
#5D338E #8A338E #8E3364
triadic
#8A338E #8E8A33 #338E8A
tetradic
#8A338E #8E5D33 #378E33 #33648E
square
#8A338E #8E5D33 #378E33 #33648E
split-complementary
#8A338E #648E33 #338E5D
monochromatic
#321334 #5E2361 #8A338E #B643BB #C870CC

Accessibility & contrast

On white

7.13
#8A338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A338E
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A338E#FFFFFF#000000##FFFFFF
##8A338E1.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255191
Deuteranopia (green-blind)
#455C8C
Tritanopia (blue-blind)
#8D405C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a338e;
/* rgb */ color: rgb(138, 51, 142);
/* oklch */ color: oklch(48.1% 0.163 326.0);
Tailwind
colors: {
  custom: {
    50: '#af71af',
    500: '#8a338e',
    950: '#000000',
  },
}
SCSS
$custom: #8a338e;
$custom-light: #af71af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a338e",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 297.363,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.48088,
    "c": 0.16342,
    "h": 326
  },
  "luminance": 0.09724
}

Semantic roles & 50–950 ramp

primary
#8A338E
secondary
#6DB469
accent
#D75157
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A338E

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

Preview Lab → · Contrast checker → · Palette generator →

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