#8938E2#8938E2

#8938E2 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.4% C 0.238 H 300.0°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#8938E2
RGBrgb(137, 56, 226)
HSLhsl(269, 75%, 55%)
HSVhsv(269, 75%, 89%)
CMYKcmyk(39.4%, 75.2%, 0%, 11.4%)
CIE-LABlab(43.71, 64.93, -72.28)
CIE-LCHlch(43.71, 97.16, 311.93°)
OKLaboklab(54.41% 0.1192 -0.2065)
OKLCHoklch(54.41% 0.238 300)
XYZxyz(25.4547, 13.6374, 73.2280)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8938E2 #91E238
analogous
#383CE2 #8938E2 #DE38E2
triadic
#8938E2 #E28938 #38E289
tetradic
#8938E2 #E2383C #91E238 #38E2DE
square
#8938E2 #E2383C #91E238 #38E2DE
split-complementary
#8938E2 #E2DE38 #3CE238
monochromatic
#4D148B #6B1CC1 #8938E2 #A96DEA #C8A3F2

Accessibility & contrast

On white

5.63
#8938E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#8938E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8938E2
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8938E2#FFFFFF#000000##FFFFFF
##8938E21.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E7
Deuteranopia (green-blind)
#0066DF
Tritanopia (blue-blind)
#74658B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8938e2;
/* rgb */ color: rgb(137, 56, 226);
/* oklch */ color: oklch(54.4% 0.238 300.0);
Tailwind
colors: {
  custom: {
    50: '#b377ec',
    500: '#8938e2',
    950: '#000000',
  },
}
SCSS
$custom: #8938e2;
$custom-light: #b377ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8938e2",
  "rgb": {
    "r": 137,
    "g": 56,
    "b": 226
  },
  "hsl": {
    "h": 268.588,
    "s": 74.561,
    "l": 55.294
  },
  "oklch": {
    "l": 0.54409,
    "c": 0.23849,
    "h": 300
  },
  "luminance": 0.13638
}

Semantic roles & 50–950 ramp

primary
#8938E2
secondary
#BDDE97
accent
#F13798
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8938E2

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

Preview Lab → · Contrast checker → · Palette generator →

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