#9938CC#9938CC

#9938CC is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.7% C 0.221 H 311.1°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#9938CC
RGBrgb(153, 56, 204)
HSLhsl(279, 59%, 51%)
HSVhsv(279, 73%, 80%)
CMYKcmyk(25%, 72.5%, 0%, 20%)
CIE-LABlab(44.18, 62.88, -58.81)
CIE-LCHlch(44.18, 86.09, 316.92°)
OKLaboklab(54.68% 0.1451 -0.1664)
OKLCHoklch(54.68% 0.221 311.1)
XYZxyz(25.4481, 13.9609, 58.4692)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9938CC #6BCC38
analogous
#4F38CC #9938CC #CC38B5
triadic
#9938CC #CC9938 #38CC99
tetradic
#9938CC #CC4F38 #6BCC38 #38B5CC
square
#9938CC #CC4F38 #6BCC38 #38B5CC
split-complementary
#9938CC #B5CC38 #38CC4F
monochromatic
#511C6E #76299E #9938CC #B269D8 #CB99E5

Accessibility & contrast

On white

5.54
#9938CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#9938CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9938CC
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9938CC#FFFFFF#000000##FFFFFF
##9938CC1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D0
Deuteranopia (green-blind)
#1F6AC9
Tritanopia (blue-blind)
#92597F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9938cc;
/* rgb */ color: rgb(153, 56, 204);
/* oklch */ color: oklch(54.7% 0.221 311.1);
Tailwind
colors: {
  custom: {
    50: '#bc78dc',
    500: '#9938cc',
    950: '#000000',
  },
}
SCSS
$custom: #9938cc;
$custom-light: #bc78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9938cc",
  "rgb": {
    "r": 153,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 279.324,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54675,
    "c": 0.2208,
    "h": 311.1
  },
  "luminance": 0.1396
}

Semantic roles & 50–950 ramp

primary
#9938CC
secondary
#A6D18F
accent
#E2457C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9938CC

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

Preview Lab → · Contrast checker → · Palette generator →

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