#8A338B#8A338B

#8A338B is a mid, vivid purple. Relative luminance 0.096; OKLCH L 47.9% C 0.161 H 327.3°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#8A338B
RGBrgb(138, 51, 139)
HSLhsl(299, 46%, 37%)
HSVhsv(299, 63%, 55%)
CMYKcmyk(0.7%, 63.3%, 0%, 45.5%)
CIE-LABlab(37.18, 48.70, -31.46)
CIE-LCHlch(37.18, 57.98, 327.14°)
OKLaboklab(47.92% 0.1352 -0.0869)
OKLCHoklch(47.92% 0.161 327.3)
XYZxyz(16.3250, 9.6361, 25.4212)
Luminance0.0964 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A338B #348B33
analogous
#5E338B #8A338B #8B3360
triadic
#8A338B #8B8A33 #338B8A
tetradic
#8A338B #8B5E33 #348B33 #33608B
square
#8A338B #8B5E33 #348B33 #33608B
split-complementary
#8A338B #608B33 #338B5E
monochromatic
#311231 #5E235E #8A338B #B643B8 #C96ECA

Accessibility & contrast

On white

7.17
#8A338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8A338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A338B
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A338B#FFFFFF#000000##FFFFFF
##8A338B1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27508E
Deuteranopia (green-blind)
#475B89
Tritanopia (blue-blind)
#8E3F5A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a338b;
/* rgb */ color: rgb(138, 51, 139);
/* oklch */ color: oklch(47.9% 0.161 327.3);
Tailwind
colors: {
  custom: {
    50: '#af71ad',
    500: '#8a338b',
    950: '#000000',
  },
}
SCSS
$custom: #8a338b;
$custom-light: #af71ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a338b",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 299.318,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47917,
    "c": 0.16075,
    "h": 327.3
  },
  "luminance": 0.09635
}

Semantic roles & 50–950 ramp

primary
#8A338B
secondary
#69B268
accent
#D65253
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A338B

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

Preview Lab → · Contrast checker → · Palette generator →

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