#9938D3#9938D3

#9938D3 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 55.2% C 0.227 H 309.3°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#9938D3
RGBrgb(153, 56, 211)
HSLhsl(278, 64%, 52%)
HSVhsv(278, 73%, 83%)
CMYKcmyk(27.5%, 73.5%, 0%, 17.3%)
CIE-LABlab(44.67, 64.35, -62.05)
CIE-LCHlch(44.67, 89.40, 316.04°)
OKLaboklab(55.18% 0.144 -0.1759)
OKLCHoklch(55.18% 0.227 309.3)
XYZxyz(26.3065, 14.3043, 62.9906)
Luminance0.1430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9938D3 #72D338
analogous
#4B38D3 #9938D3 #D338C0
triadic
#9938D3 #D39938 #38D399
tetradic
#9938D3 #D34B38 #72D338 #38C0D3
square
#9938D3 #D34B38 #72D338 #38C0D3
split-complementary
#9938D3 #C0D338 #38D34B
monochromatic
#541A76 #7725A9 #9938D3 #B36ADE #CC9CE9

Accessibility & contrast

On white

5.44
#9938D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#9938D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9938D3
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9938D3#FFFFFF#000000##FFFFFF
##9938D31.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#086BD0
Tritanopia (blue-blind)
#905C83
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9938d3;
/* rgb */ color: rgb(153, 56, 211);
/* oklch */ color: oklch(55.2% 0.227 309.3);
Tailwind
colors: {
  custom: {
    50: '#bc78e1',
    500: '#9938d3',
    950: '#000000',
  },
}
SCSS
$custom: #9938d3;
$custom-light: #bc78e1;
$custom-dark: #000000;
JSON
{
  "hex": "#9938d3",
  "rgb": {
    "r": 153,
    "g": 56,
    "b": 211
  },
  "hsl": {
    "h": 277.548,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.55176,
    "c": 0.22736,
    "h": 309.3
  },
  "luminance": 0.14304
}

Semantic roles & 50–950 ramp

primary
#9938D3
secondary
#ABD592
accent
#E7417F
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9938D3

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

Preview Lab → · Contrast checker → · Palette generator →

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