#8938B7#8938B7

#8938B7 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.2% C 0.196 H 310.5°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#8938B7
RGBrgb(137, 56, 183)
HSLhsl(278, 53%, 47%)
HSVhsv(278, 69%, 72%)
CMYKcmyk(25.1%, 69.4%, 0%, 28.2%)
CIE-LABlab(40.52, 55.15, -52.58)
CIE-LCHlch(40.52, 76.19, 316.37°)
OKLaboklab(51.15% 0.127 -0.1486)
OKLCHoklch(51.15% 0.196 310.5)
XYZxyz(20.2763, 11.5661, 45.9549)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8938B7 #66B738
analogous
#4A38B7 #8938B7 #B738A6
triadic
#8938B7 #B78938 #38B789
tetradic
#8938B7 #B74A38 #66B738 #38A6B7
square
#8938B7 #B74A38 #66B738 #38A6B7
split-complementary
#8938B7 #A6B738 #38B74A
monochromatic
#431B59 #662A88 #8938B7 #A55ECE #C08DDC

Accessibility & contrast

On white

6.34
#8938B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8938B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8938B7
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8938B7#FFFFFF#000000##FFFFFF
##8938B71.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#2461B4
Tritanopia (blue-blind)
#835373
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8938b7;
/* rgb */ color: rgb(137, 56, 183);
/* oklch */ color: oklch(51.2% 0.196 310.5);
Tailwind
colors: {
  custom: {
    50: '#b075cd',
    500: '#8938b7',
    950: '#000000',
  },
}
SCSS
$custom: #8938b7;
$custom-light: #b075cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8938b7",
  "rgb": {
    "r": 137,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 278.268,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51151,
    "c": 0.19552,
    "h": 310.5
  },
  "luminance": 0.11566
}

Semantic roles & 50–950 ramp

primary
#8938B7
secondary
#9CC784
accent
#DD4B80
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8938B7

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

Preview Lab → · Contrast checker → · Palette generator →

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