#8A398E#8A398E

#8A398E is a mid, vivid purple. Relative luminance 0.103; OKLCH L 48.8% C 0.155 H 325.8°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8A398E
RGBrgb(138, 57, 142)
HSLhsl(297, 43%, 39%)
HSVhsv(297, 60%, 56%)
CMYKcmyk(2.8%, 59.9%, 0%, 44.3%)
CIE-LABlab(38.35, 46.50, -31.46)
CIE-LCHlch(38.35, 56.14, 325.92°)
OKLaboklab(48.82% 0.1277 -0.0869)
OKLCHoklch(48.82% 0.155 325.8)
XYZxyz(16.8265, 10.2835, 26.6846)
Luminance0.1028 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A398E #3D8E39
analogous
#60398E #8A398E #8E3968
triadic
#8A398E #8E8A39 #398E8A
tetradic
#8A398E #8E6039 #3D8E39 #39688E
square
#8A398E #8E6039 #3D8E39 #39688E
split-complementary
#8A398E #688E39 #398E60
monochromatic
#351637 #602762 #8A398E #B24DB7 #C578C9

Accessibility & contrast

On white

6.87
#8A398E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8A398E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A398E
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A398E#FFFFFF#000000##FFFFFF
##8A398E1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5491
Deuteranopia (green-blind)
#495E8C
Tritanopia (blue-blind)
#8D445E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a398e;
/* rgb */ color: rgb(138, 57, 142);
/* oklch */ color: oklch(48.8% 0.155 325.8);
Tailwind
colors: {
  custom: {
    50: '#af74af',
    500: '#8a398e',
    950: '#000000',
  },
}
SCSS
$custom: #8a398e;
$custom-light: #af74af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a398e",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 297.176,
    "s": 42.714,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48817,
    "c": 0.15451,
    "h": 325.8
  },
  "luminance": 0.10283
}

Semantic roles & 50–950 ramp

primary
#8A398E
secondary
#74B271
accent
#D2555B
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110910
muted
#807B7F

Preview Lab

Preview with #8A398E

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

Preview Lab → · Contrast checker → · Palette generator →

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