#8A338C#8A338C

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

Color values

HEX#8A338C
RGBrgb(138, 51, 140)
HSLhsl(299, 47%, 37%)
HSVhsv(299, 64%, 55%)
CMYKcmyk(1.4%, 63.6%, 0%, 45.1%)
CIE-LABlab(37.24, 48.89, -31.99)
CIE-LCHlch(37.24, 58.42, 326.80°)
OKLaboklab(47.97% 0.1353 -0.0884)
OKLCHoklch(47.97% 0.162 326.8)
XYZxyz(16.3984, 9.6654, 25.8077)
Luminance0.0966 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A338C #358C33
analogous
#5E338C #8A338C #8C3361
triadic
#8A338C #8C8A33 #338C8A
tetradic
#8A338C #8C5E33 #358C33 #33618C
square
#8A338C #8C5E33 #358C33 #33618C
split-complementary
#8A338C #618C33 #338C5E
monochromatic
#321232 #5E235F #8A338C #B643B9 #C86FCB

Accessibility & contrast

On white

7.16
#8A338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A338C
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A338C#FFFFFF#000000##FFFFFF
##8A338C1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26508F
Deuteranopia (green-blind)
#465C8A
Tritanopia (blue-blind)
#8E3F5B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a338c;
/* rgb */ color: rgb(138, 51, 140);
/* oklch */ color: oklch(48.0% 0.162 326.8);
Tailwind
colors: {
  custom: {
    50: '#af71ae',
    500: '#8a338c',
    950: '#000000',
  },
}
SCSS
$custom: #8a338c;
$custom-light: #af71ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a338c",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 298.652,
    "s": 46.597,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47974,
    "c": 0.16163,
    "h": 326.8
  },
  "luminance": 0.09664
}

Semantic roles & 50–950 ramp

primary
#8A338C
secondary
#6AB268
accent
#D65255
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A338C

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

Preview Lab → · Contrast checker → · Palette generator →

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