#8938BA#8938BA

#8938BA is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.4% C 0.199 H 309.6°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#8938BA
RGBrgb(137, 56, 186)
HSLhsl(277, 54%, 47%)
HSVhsv(277, 70%, 73%)
CMYKcmyk(26.3%, 69.9%, 0%, 27.1%)
CIE-LABlab(40.72, 55.81, -54.01)
CIE-LCHlch(40.72, 77.66, 315.94°)
OKLaboklab(51.36% 0.1267 -0.1529)
OKLCHoklch(51.36% 0.199 309.6)
XYZxyz(20.5919, 11.6923, 47.6169)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8938BA #69BA38
analogous
#4838BA #8938BA #BA38AA
triadic
#8938BA #BA8938 #38BA89
tetradic
#8938BA #BA4838 #69BA38 #38AABA
square
#8938BA #BA4838 #69BA38 #38AABA
split-complementary
#8938BA #AABA38 #38BA48
monochromatic
#441C5C #662A8B #8938BA #A560CF #C08FDD

Accessibility & contrast

On white

6.29
#8938BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8938BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8938BA
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8938BA#FFFFFF#000000##FFFFFF
##8938BA1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#1F61B7
Tritanopia (blue-blind)
#825475
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8938ba;
/* rgb */ color: rgb(137, 56, 186);
/* oklch */ color: oklch(51.4% 0.199 309.6);
Tailwind
colors: {
  custom: {
    50: '#b075cf',
    500: '#8938ba',
    950: '#000000',
  },
}
SCSS
$custom: #8938ba;
$custom-light: #b075cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8938ba",
  "rgb": {
    "r": 137,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 277.385,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51363,
    "c": 0.19853,
    "h": 309.6
  },
  "luminance": 0.11692
}

Semantic roles & 50–950 ramp

primary
#8938BA
secondary
#9FC886
accent
#DD4B82
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8938BA

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

Preview Lab → · Contrast checker → · Palette generator →

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