#8938D4#8938D4

#8938D4 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.3% C 0.225 H 303.0°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#8938D4
RGBrgb(137, 56, 212)
HSLhsl(271, 64%, 53%)
HSVhsv(271, 74%, 83%)
CMYKcmyk(35.4%, 73.6%, 0%, 16.9%)
CIE-LABlab(42.61, 61.68, -66.06)
CIE-LCHlch(42.61, 90.37, 313.03°)
OKLaboklab(53.3% 0.1224 -0.1883)
OKLCHoklch(53.3% 0.225 303)
XYZxyz(23.6116, 12.9002, 63.5206)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8938D4 #83D438
analogous
#3B38D4 #8938D4 #D438D1
triadic
#8938D4 #D48938 #38D489
tetradic
#8938D4 #D43B38 #83D438 #38D1D4
square
#8938D4 #D43B38 #83D438 #38D1D4
split-complementary
#8938D4 #D1D438 #38D43B
monochromatic
#4B1A78 #6A25AA #8938D4 #A76ADF #C59DEA

Accessibility & contrast

On white

5.87
#8938D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8938D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8938D4
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8938D4#FFFFFF#000000##FFFFFF
##8938D41.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D8
Deuteranopia (green-blind)
#0064D1
Tritanopia (blue-blind)
#7A5F83
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8938d4;
/* rgb */ color: rgb(137, 56, 212);
/* oklch */ color: oklch(53.3% 0.225 303.0);
Tailwind
colors: {
  custom: {
    50: '#b276e2',
    500: '#8938d4',
    950: '#000000',
  },
}
SCSS
$custom: #8938d4;
$custom-light: #b276e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8938d4",
  "rgb": {
    "r": 137,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 271.154,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53297,
    "c": 0.22454,
    "h": 303
  },
  "luminance": 0.129
}

Semantic roles & 50–950 ramp

primary
#8938D4
secondary
#B3D692
accent
#E74091
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#120915
muted
#817B84

Preview Lab

Preview with #8938D4

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

Preview Lab → · Contrast checker → · Palette generator →

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