#8938C6#8938C6

#8938C6 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.2% C 0.211 H 306.4°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#8938C6
RGBrgb(137, 56, 198)
HSLhsl(274, 56%, 50%)
HSVhsv(274, 72%, 78%)
CMYKcmyk(30.8%, 71.7%, 0%, 22.4%)
CIE-LABlab(41.57, 58.48, -59.65)
CIE-LCHlch(41.57, 83.54, 314.43°)
OKLaboklab(52.23% 0.125 -0.1694)
OKLCHoklch(52.23% 0.211 306.4)
XYZxyz(21.9215, 12.2242, 54.6198)
Luminance0.1222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8938C6 #75C638
analogous
#4238C6 #8938C6 #C638BC
triadic
#8938C6 #C68938 #38C689
tetradic
#8938C6 #C64238 #75C638 #38BCC6
square
#8938C6 #C64238 #75C638 #38BCC6
split-complementary
#8938C6 #BCC638 #38C642
monochromatic
#471D67 #682B96 #8938C6 #A567D4 #C197E2

Accessibility & contrast

On white

6.10
#8938C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#8938C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8938C6
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8938C6#FFFFFF#000000##FFFFFF
##8938C61.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CA
Deuteranopia (green-blind)
#0062C3
Tritanopia (blue-blind)
#7E597C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8938c6;
/* rgb */ color: rgb(137, 56, 198);
/* oklch */ color: oklch(52.2% 0.211 306.4);
Tailwind
colors: {
  custom: {
    50: '#b076d8',
    500: '#8938c6',
    950: '#000000',
  },
}
SCSS
$custom: #8938c6;
$custom-light: #b076d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8938c6",
  "rgb": {
    "r": 137,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 274.225,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52233,
    "c": 0.21053,
    "h": 306.4
  },
  "luminance": 0.12224
}

Semantic roles & 50–950 ramp

primary
#8938C6
secondary
#A8CD8D
accent
#DF4989
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #8938C6

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

Preview Lab → · Contrast checker → · Palette generator →

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