#8938B8#8938B8

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

Color values

HEX#8938B8
RGBrgb(137, 56, 184)
HSLhsl(278, 53%, 47%)
HSVhsv(278, 70%, 72%)
CMYKcmyk(25.5%, 69.6%, 0%, 27.8%)
CIE-LABlab(40.59, 55.37, -53.06)
CIE-LCHlch(40.59, 76.68, 316.22°)
OKLaboklab(51.22% 0.1269 -0.15)
OKLCHoklch(51.22% 0.197 310.2)
XYZxyz(20.3808, 11.6078, 46.5050)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8938B8 #67B838
analogous
#4938B8 #8938B8 #B838A7
triadic
#8938B8 #B88938 #38B889
tetradic
#8938B8 #B84938 #67B838 #38A7B8
square
#8938B8 #B84938 #67B838 #38A7B8
split-complementary
#8938B8 #A7B838 #38B849
monochromatic
#431B5A #662A89 #8938B8 #A55FCE #C08EDD

Accessibility & contrast

On white

6.32
#8938B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8938B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8938B8
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8938B8#FFFFFF#000000##FFFFFF
##8938B81.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBC
Deuteranopia (green-blind)
#2361B5
Tritanopia (blue-blind)
#835474
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8938b8;
/* rgb */ color: rgb(137, 56, 184);
/* oklch */ color: oklch(51.2% 0.197 310.2);
Tailwind
colors: {
  custom: {
    50: '#b075ce',
    500: '#8938b8',
    950: '#000000',
  },
}
SCSS
$custom: #8938b8;
$custom-light: #b075ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8938b8",
  "rgb": {
    "r": 137,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 277.969,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51222,
    "c": 0.19652,
    "h": 310.2
  },
  "luminance": 0.11607
}

Semantic roles & 50–950 ramp

primary
#8938B8
secondary
#9DC785
accent
#DD4B81
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8938B8

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

Preview Lab → · Contrast checker → · Palette generator →

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