#8938B2#8938B2

#8938B2 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.8% C 0.191 H 312.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#8938B2
RGBrgb(137, 56, 178)
HSLhsl(280, 52%, 46%)
HSVhsv(280, 69%, 70%)
CMYKcmyk(23%, 68.5%, 0%, 30.2%)
CIE-LABlab(40.18, 54.06, -50.17)
CIE-LCHlch(40.18, 73.75, 317.14°)
OKLaboklab(50.81% 0.1275 -0.1416)
OKLCHoklch(50.81% 0.191 312)
XYZxyz(19.7651, 11.3616, 43.2627)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8938B2 #61B238
analogous
#4C38B2 #8938B2 #B2389E
triadic
#8938B2 #B28938 #38B289
tetradic
#8938B2 #B24C38 #61B238 #389EB2
square
#8938B2 #B24C38 #61B238 #389EB2
split-complementary
#8938B2 #9EB238 #38B24C
monochromatic
#411B55 #652983 #8938B2 #A65CCC #BF8ADA

Accessibility & contrast

On white

6.42
#8938B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8938B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8938B2
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8938B2#FFFFFF#000000##FFFFFF
##8938B21.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#2B60AF
Tritanopia (blue-blind)
#845171
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8938b2;
/* rgb */ color: rgb(137, 56, 178);
/* oklch */ color: oklch(50.8% 0.191 312.0);
Tailwind
colors: {
  custom: {
    50: '#af75ca',
    500: '#8938b2',
    950: '#000000',
  },
}
SCSS
$custom: #8938b2;
$custom-light: #af75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8938b2",
  "rgb": {
    "r": 137,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 279.836,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50805,
    "c": 0.19053,
    "h": 312
  },
  "luminance": 0.11361
}

Semantic roles & 50–950 ramp

primary
#8938B2
secondary
#98C581
accent
#DC4C7C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8938B2

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

Preview Lab → · Contrast checker → · Palette generator →

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