#8A438B#8A438B

#8A438B is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.0% C 0.135 H 326.8°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8A438B
RGBrgb(138, 67, 139)
HSLhsl(299, 35%, 40%)
HSVhsv(299, 52%, 55%)
CMYKcmyk(0.7%, 51.8%, 0%, 45.5%)
CIE-LABlab(40.05, 40.92, -26.95)
CIE-LCHlch(40.05, 49.00, 326.63°)
OKLaboklab(50.02% 0.1134 -0.074)
OKLCHoklch(50.02% 0.135 326.8)
XYZxyz(17.1483, 11.2826, 25.6956)
Luminance0.1128 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A438B #448B43
analogous
#66438B #8A438B #8B4368
triadic
#8A438B #8B8A43 #438B8A
tetradic
#8A438B #8B6643 #448B43 #43688B
square
#8A438B #8B6643 #448B43 #43688B
split-complementary
#8A438B #688B43 #438B66
monochromatic
#381B38 #612F62 #8A438B #AF5BB0 #C384C4

Accessibility & contrast

On white

6.45
#8A438B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8A438B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A438B
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A438B#FFFFFF#000000##FFFFFF
##8A438B1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C598D
Deuteranopia (green-blind)
#516289
Tritanopia (blue-blind)
#8E4B61
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a438b;
/* rgb */ color: rgb(138, 67, 139);
/* oklch */ color: oklch(50.0% 0.135 326.8);
Tailwind
colors: {
  custom: {
    50: '#ae7aad',
    500: '#8a438b',
    950: '#000000',
  },
}
SCSS
$custom: #8a438b;
$custom-light: #ae7aad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a438b",
  "rgb": {
    "r": 138,
    "g": 67,
    "b": 139
  },
  "hsl": {
    "h": 299.167,
    "s": 34.951,
    "l": 40.392
  },
  "oklch": {
    "l": 0.50019,
    "c": 0.1354,
    "h": 326.8
  },
  "luminance": 0.11282
}

Semantic roles & 50–950 ramp

primary
#8A438B
secondary
#7CAF7B
accent
#CB5D5E
background
#FAF7FA
surface
#F5EEF4
border
#CFC9CE
text
#100910
muted
#7F7B7F

Preview Lab

Preview with #8A438B

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

Preview Lab → · Contrast checker → · Palette generator →

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