#9938D7#9938D7

#9938D7 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.5% C 0.231 H 308.3°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9938D7
RGBrgb(153, 56, 215)
HSLhsl(277, 67%, 53%)
HSVhsv(277, 74%, 84%)
CMYKcmyk(28.8%, 74%, 0%, 15.7%)
CIE-LABlab(44.95, 65.20, -63.88)
CIE-LCHlch(44.95, 91.28, 315.59°)
OKLaboklab(55.47% 0.1433 -0.1813)
OKLCHoklch(55.47% 0.231 308.3)
XYZxyz(26.8142, 14.5074, 65.6644)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9938D7 #76D738
analogous
#4938D7 #9938D7 #D738C5
triadic
#9938D7 #D79938 #38D799
tetradic
#9938D7 #D74938 #76D738 #38C5D7
square
#9938D7 #D74938 #76D738 #38C5D7
split-complementary
#9938D7 #C5D738 #38D749
monochromatic
#55197C #7823AF #9938D7 #B36BE1 #CD9EEB

Accessibility & contrast

On white

5.38
#9938D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#9938D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9938D7
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9938D7#FFFFFF#000000##FFFFFF
##9938D71.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DB
Deuteranopia (green-blind)
#006BD4
Tritanopia (blue-blind)
#8F5E85
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9938d7;
/* rgb */ color: rgb(153, 56, 215);
/* oklch */ color: oklch(55.5% 0.231 308.3);
Tailwind
colors: {
  custom: {
    50: '#bc78e4',
    500: '#9938d7',
    950: '#000000',
  },
}
SCSS
$custom: #9938d7;
$custom-light: #bc78e4;
$custom-dark: #000000;
JSON
{
  "hex": "#9938d7",
  "rgb": {
    "r": 153,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 276.604,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.55468,
    "c": 0.23112,
    "h": 308.3
  },
  "luminance": 0.14507
}

Semantic roles & 50–950 ramp

primary
#9938D7
secondary
#AED893
accent
#E93E81
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9938D7

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

Preview Lab → · Contrast checker → · Palette generator →

#9938D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva