#8938C5#8938C5

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

Color values

HEX#8938C5
RGBrgb(137, 56, 197)
HSLhsl(274, 56%, 50%)
HSVhsv(274, 72%, 77%)
CMYKcmyk(30.5%, 71.6%, 0%, 22.7%)
CIE-LABlab(41.50, 58.26, -59.19)
CIE-LCHlch(41.50, 83.05, 314.55°)
OKLaboklab(52.16% 0.1251 -0.1681)
OKLCHoklch(52.16% 0.21 306.7)
XYZxyz(21.8066, 12.1782, 54.0143)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8938C5 #74C538
analogous
#4338C5 #8938C5 #C538BB
triadic
#8938C5 #C58938 #38C589
tetradic
#8938C5 #C54338 #74C538 #38BBC5
square
#8938C5 #C54338 #74C538 #38BBC5
split-complementary
#8938C5 #BBC538 #38C543
monochromatic
#471D66 #682A95 #8938C5 #A567D4 #C196E1

Accessibility & contrast

On white

6.11
#8938C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8938C5
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8938C5#FFFFFF#000000##FFFFFF
##8938C51.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC9
Deuteranopia (green-blind)
#0062C2
Tritanopia (blue-blind)
#7F597B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8938c5;
/* rgb */ color: rgb(137, 56, 197);
/* oklch */ color: oklch(52.2% 0.210 306.7);
Tailwind
colors: {
  custom: {
    50: '#b076d7',
    500: '#8938c5',
    950: '#000000',
  },
}
SCSS
$custom: #8938c5;
$custom-light: #b076d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8938c5",
  "rgb": {
    "r": 137,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 274.468,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52159,
    "c": 0.20953,
    "h": 306.7
  },
  "luminance": 0.12178
}

Semantic roles & 50–950 ramp

primary
#8938C5
secondary
#A8CD8C
accent
#DF4989
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8938C5

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

Preview Lab → · Contrast checker → · Palette generator →

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