#8C38AE#8C38AE

#8C38AE is a mid, vivid purple. Relative luminance 0.115; OKLCH L 50.9% C 0.188 H 314.6°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8C38AE
RGBrgb(140, 56, 174)
HSLhsl(283, 51%, 45%)
HSVhsv(283, 68%, 68%)
CMYKcmyk(19.5%, 67.8%, 0%, 31.8%)
CIE-LABlab(40.35, 53.87, -47.51)
CIE-LCHlch(40.35, 71.83, 318.59°)
OKLaboklab(50.93% 0.1317 -0.1337)
OKLCHoklch(50.93% 0.188 314.6)
XYZxyz(19.8681, 11.4605, 41.2017)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C38AE #5AAE38
analogous
#5138AE #8C38AE #AE3895
triadic
#8C38AE #AE8C38 #38AE8C
tetradic
#8C38AE #AE5138 #5AAE38 #3895AE
square
#8C38AE #AE5138 #5AAE38 #3895AE
split-complementary
#8C38AE #95AE38 #38AE51
monochromatic
#411A51 #672980 #8C38AE #A959CA #C188D9

Accessibility & contrast

On white

6.38
#8C38AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8C38AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C38AE
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C38AE#FFFFFF#000000##FFFFFF
##8C38AE1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB1
Deuteranopia (green-blind)
#3461AB
Tritanopia (blue-blind)
#894F6E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8c38ae;
/* rgb */ color: rgb(140, 56, 174);
/* oklch */ color: oklch(50.9% 0.188 314.6);
Tailwind
colors: {
  custom: {
    50: '#b175c7',
    500: '#8c38ae',
    950: '#000000',
  },
}
SCSS
$custom: #8c38ae;
$custom-light: #b175c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8c38ae",
  "rgb": {
    "r": 140,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 282.712,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50927,
    "c": 0.18766,
    "h": 314.6
  },
  "luminance": 0.1146
}

Semantic roles & 50–950 ramp

primary
#8C38AE
secondary
#93C37F
accent
#DB4D76
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8C38AE

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

Preview Lab → · Contrast checker → · Palette generator →

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