#8938D1#8938D1

#8938D1 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.1% C 0.222 H 303.7°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#8938D1
RGBrgb(137, 56, 209)
HSLhsl(272, 62%, 52%)
HSVhsv(272, 73%, 82%)
CMYKcmyk(34.4%, 73.2%, 0%, 18%)
CIE-LABlab(42.38, 60.99, -64.70)
CIE-LCHlch(42.38, 88.91, 313.31°)
OKLaboklab(53.07% 0.123 -0.1843)
OKLCHoklch(53.07% 0.222 303.7)
XYZxyz(23.2367, 12.7502, 61.5461)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8938D1 #80D138
analogous
#3D38D1 #8938D1 #D138CC
triadic
#8938D1 #D18938 #38D189
tetradic
#8938D1 #D13D38 #80D138 #38CCD1
square
#8938D1 #D13D38 #80D138 #38CCD1
split-complementary
#8938D1 #CCD138 #38D13D
monochromatic
#4A1B74 #6A26A6 #8938D1 #A66ADC #C49BE8

Accessibility & contrast

On white

5.92
#8938D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8938D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8938D1
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8938D1#FFFFFF#000000##FFFFFF
##8938D11.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D5
Deuteranopia (green-blind)
#0064CE
Tritanopia (blue-blind)
#7B5E82
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8938d1;
/* rgb */ color: rgb(137, 56, 209);
/* oklch */ color: oklch(53.1% 0.222 303.7);
Tailwind
colors: {
  custom: {
    50: '#b176e0',
    500: '#8938d1',
    950: '#000000',
  },
}
SCSS
$custom: #8938d1;
$custom-light: #b176e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8938d1",
  "rgb": {
    "r": 137,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 271.765,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53065,
    "c": 0.22154,
    "h": 303.7
  },
  "luminance": 0.1275
}

Semantic roles & 50–950 ramp

primary
#8938D1
secondary
#B0D491
accent
#E6428F
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8938D1

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

Preview Lab → · Contrast checker → · Palette generator →

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