#9938CD#9938CD

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

Color values

HEX#9938CD
RGBrgb(153, 56, 205)
HSLhsl(279, 60%, 51%)
HSVhsv(279, 73%, 80%)
CMYKcmyk(25.4%, 72.7%, 0%, 19.6%)
CIE-LABlab(44.25, 63.09, -59.27)
CIE-LCHlch(44.25, 86.57, 316.79°)
OKLaboklab(54.75% 0.145 -0.1678)
OKLCHoklch(54.75% 0.222 310.8)
XYZxyz(25.5684, 14.0090, 59.1029)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9938CD #6CCD38
analogous
#4E38CD #9938CD #CD38B6
triadic
#9938CD #CD9938 #38CD99
tetradic
#9938CD #CD4E38 #6CCD38 #38B6CD
square
#9938CD #CD4E38 #6CCD38 #38B6CD
split-complementary
#9938CD #B6CD38 #38CD4E
monochromatic
#521C6F #7628A0 #9938CD #B269D9 #CB9AE6

Accessibility & contrast

On white

5.52
#9938CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#9938CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9938CD
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9938CD#FFFFFF#000000##FFFFFF
##9938CD1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D1
Deuteranopia (green-blind)
#1C6ACA
Tritanopia (blue-blind)
#925A80
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9938cd;
/* rgb */ color: rgb(153, 56, 205);
/* oklch */ color: oklch(54.7% 0.222 310.8);
Tailwind
colors: {
  custom: {
    50: '#bc78dd',
    500: '#9938cd',
    950: '#000000',
  },
}
SCSS
$custom: #9938cd;
$custom-light: #bc78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9938cd",
  "rgb": {
    "r": 153,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 279.06,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.54746,
    "c": 0.22174,
    "h": 310.8
  },
  "luminance": 0.14008
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9938CD

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

Preview Lab → · Contrast checker → · Palette generator →

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