#9938CB#9938CB

#9938CB is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.6% C 0.220 H 311.4°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#9938CB
RGBrgb(153, 56, 203)
HSLhsl(280, 59%, 51%)
HSVhsv(280, 72%, 80%)
CMYKcmyk(24.6%, 72.4%, 0%, 20.4%)
CIE-LABlab(44.11, 62.67, -58.34)
CIE-LCHlch(44.11, 85.62, 317.05°)
OKLaboklab(54.6% 0.1453 -0.165)
OKLCHoklch(54.6% 0.22 311.4)
XYZxyz(25.3285, 13.9131, 57.8396)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9938CB #6ACB38
analogous
#4F38CB #9938CB #CB38B3
triadic
#9938CB #CB9938 #38CB99
tetradic
#9938CB #CB4F38 #6ACB38 #38B3CB
square
#9938CB #CB4F38 #6ACB38 #38B3CB
split-complementary
#9938CB #B3CB38 #38CB4F
monochromatic
#511C6C #75299D #9938CB #B269D8 #CB99E4

Accessibility & contrast

On white

5.55
#9938CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#9938CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9938CB
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9938CB#FFFFFF#000000##FFFFFF
##9938CB1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#216AC8
Tritanopia (blue-blind)
#93597E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9938cb;
/* rgb */ color: rgb(153, 56, 203);
/* oklch */ color: oklch(54.6% 0.220 311.4);
Tailwind
colors: {
  custom: {
    50: '#bc78dc',
    500: '#9938cb',
    950: '#000000',
  },
}
SCSS
$custom: #9938cb;
$custom-light: #bc78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9938cb",
  "rgb": {
    "r": 153,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 279.592,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.54604,
    "c": 0.21987,
    "h": 311.4
  },
  "luminance": 0.13912
}

Semantic roles & 50–950 ramp

primary
#9938CB
secondary
#A5D08F
accent
#E2467B
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9938CB

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

Preview Lab → · Contrast checker → · Palette generator →

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