#8938C7#8938C7

#8938C7 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.3% C 0.212 H 306.2°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8938C7
RGBrgb(137, 56, 199)
HSLhsl(274, 56%, 50%)
HSVhsv(274, 72%, 78%)
CMYKcmyk(31.2%, 71.9%, 0%, 22%)
CIE-LABlab(41.64, 58.71, -60.12)
CIE-LCHlch(41.64, 84.03, 314.32°)
OKLaboklab(52.31% 0.1248 -0.1708)
OKLCHoklch(52.31% 0.212 306.2)
XYZxyz(22.0373, 12.2704, 55.2292)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8938C7 #76C738
analogous
#4238C7 #8938C7 #C738BD
triadic
#8938C7 #C78938 #38C789
tetradic
#8938C7 #C74238 #76C738 #38BDC7
square
#8938C7 #C74238 #76C738 #38BDC7
split-complementary
#8938C7 #BDC738 #38C742
monochromatic
#471D67 #682B97 #8938C7 #A568D4 #C298E2

Accessibility & contrast

On white

6.08
#8938C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8938C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8938C7
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8938C7#FFFFFF#000000##FFFFFF
##8938C71.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CB
Deuteranopia (green-blind)
#0063C4
Tritanopia (blue-blind)
#7E5A7C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8938c7;
/* rgb */ color: rgb(137, 56, 199);
/* oklch */ color: oklch(52.3% 0.212 306.2);
Tailwind
colors: {
  custom: {
    50: '#b176d9',
    500: '#8938c7',
    950: '#000000',
  },
}
SCSS
$custom: #8938c7;
$custom-light: #b176d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8938c7",
  "rgb": {
    "r": 137,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 273.986,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.52308,
    "c": 0.21153,
    "h": 306.2
  },
  "luminance": 0.1227
}

Semantic roles & 50–950 ramp

primary
#8938C7
secondary
#A9CD8D
accent
#DF488A
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8938C7

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

Preview Lab → · Contrast checker → · Palette generator →

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