#9938CA#9938CA

#9938CA is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.5% C 0.219 H 311.6°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#9938CA
RGBrgb(153, 56, 202)
HSLhsl(280, 58%, 51%)
HSVhsv(280, 72%, 79%)
CMYKcmyk(24.3%, 72.3%, 0%, 20.8%)
CIE-LABlab(44.04, 62.46, -57.87)
CIE-LCHlch(44.04, 85.15, 317.18°)
OKLaboklab(54.53% 0.1454 -0.1637)
OKLCHoklch(54.53% 0.219 311.6)
XYZxyz(25.2097, 13.8656, 57.2140)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9938CA #69CA38
analogous
#5038CA #9938CA #CA38B2
triadic
#9938CA #CA9938 #38CA99
tetradic
#9938CA #CA5038 #69CA38 #38B2CA
square
#9938CA #CA5038 #69CA38 #38B2CA
split-complementary
#9938CA #B2CA38 #38CA50
monochromatic
#511D6B #75299B #9938CA #B268D7 #CB99E4

Accessibility & contrast

On white

5.57
#9938CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#9938CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9938CA
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9938CA#FFFFFF#000000##FFFFFF
##9938CA1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#236AC7
Tritanopia (blue-blind)
#93597E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9938ca;
/* rgb */ color: rgb(153, 56, 202);
/* oklch */ color: oklch(54.5% 0.219 311.6);
Tailwind
colors: {
  custom: {
    50: '#bc77db',
    500: '#9938ca',
    950: '#000000',
  },
}
SCSS
$custom: #9938ca;
$custom-light: #bc77db;
$custom-dark: #000000;
JSON
{
  "hex": "#9938ca",
  "rgb": {
    "r": 153,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 279.863,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54534,
    "c": 0.21893,
    "h": 311.6
  },
  "luminance": 0.13865
}

Semantic roles & 50–950 ramp

primary
#9938CA
secondary
#A4CF8E
accent
#E1477A
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9938CA

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

Preview Lab → · Contrast checker → · Palette generator →

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