#8A3F7E#8A3F7E

#8A3F7E is a mid, vivid purple. Relative luminance 0.105; OKLCH L 48.8% C 0.130 H 333.8°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#8A3F7E
RGBrgb(138, 63, 126)
HSLhsl(310, 37%, 39%)
HSVhsv(310, 54%, 54%)
CMYKcmyk(0%, 54.3%, 8.7%, 45.9%)
CIE-LABlab(38.67, 40.59, -21.14)
CIE-LCHlch(38.67, 45.77, 332.49°)
OKLaboklab(48.8% 0.1169 -0.0574)
OKLCHoklch(48.8% 0.13 333.8)
XYZxyz(16.0246, 10.4657, 20.9107)
Luminance0.1047 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3F7E #3F8A4B
analogous
#713F8A #8A3F7E #8A3F59
triadic
#8A3F7E #7E8A3F #3F7E8A
tetradic
#8A3F7E #8A713F #3F8A4B #3F598A
square
#8A3F7E #8A713F #3F8A4B #3F598A
split-complementary
#8A3F7E #598A3F #3F8A71
monochromatic
#361931 #602C58 #8A3F7E #B155A3 #C57FB9

Accessibility & contrast

On white

6.79
#8A3F7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8A3F7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3F7E
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3F7E#FFFFFF#000000##FFFFFF
##8A3F7E1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5480
Deuteranopia (green-blind)
#545F7C
Tritanopia (blue-blind)
#904459
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a3f7e;
/* rgb */ color: rgb(138, 63, 126);
/* oklch */ color: oklch(48.8% 0.130 333.8);
Tailwind
colors: {
  custom: {
    50: '#ae78a3',
    500: '#8a3f7e',
    950: '#000000',
  },
}
SCSS
$custom: #8a3f7e;
$custom-light: #ae78a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3f7e",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 126
  },
  "hsl": {
    "h": 309.6,
    "s": 37.313,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48796,
    "c": 0.13026,
    "h": 333.8
  },
  "luminance": 0.10465
}

Semantic roles & 50–950 ramp

primary
#8A3F7E
secondary
#76AF7F
accent
#CD6D5B
background
#FAF7FA
surface
#F5EDF4
border
#CFC8CE
text
#11090F
muted
#807B7F

Preview Lab

Preview with #8A3F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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