#8A418C#8A418C

#8A418C is a mid, vivid purple. Relative luminance 0.111; OKLCH L 49.8% C 0.140 H 326.4°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#8A418C
RGBrgb(138, 65, 140)
HSLhsl(298, 37%, 40%)
HSVhsv(298, 54%, 55%)
CMYKcmyk(1.4%, 53.6%, 0%, 45.1%)
CIE-LABlab(39.71, 42.15, -28.09)
CIE-LCHlch(39.71, 50.66, 326.32°)
OKLaboklab(49.78% 0.1164 -0.0773)
OKLCHoklch(49.78% 0.14 326.4)
XYZxyz(17.1048, 11.0783, 26.0432)
Luminance0.1108 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A418C #438C41
analogous
#64418C #8A418C #8C4168
triadic
#8A418C #8C8A41 #418C8A
tetradic
#8A418C #8C6441 #438C41 #41688C
square
#8A418C #8C6441 #438C41 #41688C
split-complementary
#8A418C #688C41 #418C64
monochromatic
#381A38 #612E62 #8A418C #AF59B2 #C382C5

Accessibility & contrast

On white

6.53
#8A418C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8A418C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A418C
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A418C#FFFFFF#000000##FFFFFF
##8A418C1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39588E
Deuteranopia (green-blind)
#4F618A
Tritanopia (blue-blind)
#8D4A60
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a418c;
/* rgb */ color: rgb(138, 65, 140);
/* oklch */ color: oklch(49.8% 0.140 326.4);
Tailwind
colors: {
  custom: {
    50: '#ae79ae',
    500: '#8a418c',
    950: '#000000',
  },
}
SCSS
$custom: #8a418c;
$custom-light: #ae79ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a418c",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 140
  },
  "hsl": {
    "h": 298.4,
    "s": 36.585,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49784,
    "c": 0.13974,
    "h": 326.4
  },
  "luminance": 0.11077
}

Semantic roles & 50–950 ramp

primary
#8A418C
secondary
#7BB079
accent
#CD5B5E
background
#FAF7FA
surface
#F5EEF4
border
#CFC9CE
text
#110910
muted
#807B7F

Preview Lab

Preview with #8A418C

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

Preview Lab → · Contrast checker → · Palette generator →

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