#8938B1#8938B1

#8938B1 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.7% C 0.190 H 312.3°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#8938B1
RGBrgb(137, 56, 177)
HSLhsl(280, 52%, 46%)
HSVhsv(280, 68%, 69%)
CMYKcmyk(22.6%, 68.4%, 0%, 30.6%)
CIE-LABlab(40.12, 53.84, -49.68)
CIE-LCHlch(40.12, 73.26, 317.30°)
OKLaboklab(50.74% 0.1276 -0.1401)
OKLCHoklch(50.74% 0.19 312.3)
XYZxyz(19.6651, 11.3216, 42.7358)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8938B1 #60B138
analogous
#4C38B1 #8938B1 #B1389C
triadic
#8938B1 #B18938 #38B189
tetradic
#8938B1 #B14C38 #60B138 #389CB1
square
#8938B1 #B14C38 #60B138 #389CB1
split-complementary
#8938B1 #9CB138 #38B14C
monochromatic
#411B54 #652983 #8938B1 #A65BCB #BF8ADA

Accessibility & contrast

On white

6.43
#8938B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8938B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8938B1
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8938B1#FFFFFF#000000##FFFFFF
##8938B11.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB5
Deuteranopia (green-blind)
#2C60AE
Tritanopia (blue-blind)
#845170
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8938b1;
/* rgb */ color: rgb(137, 56, 177);
/* oklch */ color: oklch(50.7% 0.190 312.3);
Tailwind
colors: {
  custom: {
    50: '#af75c9',
    500: '#8938b1',
    950: '#000000',
  },
}
SCSS
$custom: #8938b1;
$custom-light: #af75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8938b1",
  "rgb": {
    "r": 137,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 280.165,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50737,
    "c": 0.18954,
    "h": 312.3
  },
  "luminance": 0.11321
}

Semantic roles & 50–950 ramp

primary
#8938B1
secondary
#97C481
accent
#DB4C7C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8938B1

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

Preview Lab → · Contrast checker → · Palette generator →

#8938B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva