#8938D9#8938D9

#8938D9 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.7% C 0.230 H 301.9°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8938D9
RGBrgb(137, 56, 217)
HSLhsl(270, 68%, 54%)
HSVhsv(270, 74%, 85%)
CMYKcmyk(36.9%, 74.2%, 0%, 14.9%)
CIE-LABlab(43.00, 62.83, -68.30)
CIE-LCHlch(43.00, 92.81, 312.61°)
OKLaboklab(53.69% 0.1213 -0.1949)
OKLCHoklch(53.69% 0.23 301.9)
XYZxyz(24.2521, 13.1564, 66.8939)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8938D9 #88D938
analogous
#3838D9 #8938D9 #D938D8
triadic
#8938D9 #D98938 #38D989
tetradic
#8938D9 #D93838 #88D938 #38D8D9
square
#8938D9 #D93838 #88D938 #38D8D9
split-complementary
#8938D9 #D8D938 #38D938
monochromatic
#4C187E #6A22B2 #8938D9 #A76BE3 #C69FED

Accessibility & contrast

On white

5.78
#8938D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8938D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8938D9
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8938D9#FFFFFF#000000##FFFFFF
##8938D91.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DE
Deuteranopia (green-blind)
#0065D6
Tritanopia (blue-blind)
#786186
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8938d9;
/* rgb */ color: rgb(137, 56, 217);
/* oklch */ color: oklch(53.7% 0.230 301.9);
Tailwind
colors: {
  custom: {
    50: '#b276e6',
    500: '#8938d9',
    950: '#000000',
  },
}
SCSS
$custom: #8938d9;
$custom-light: #b276e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8938d9",
  "rgb": {
    "r": 137,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 270.186,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53689,
    "c": 0.22952,
    "h": 301.9
  },
  "luminance": 0.13156
}

Semantic roles & 50–950 ramp

primary
#8938D9
secondary
#B6D994
accent
#EB3D93
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8938D9

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

Preview Lab → · Contrast checker → · Palette generator →

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