#9940BE#9940BE

#9940BE is a mid, vivid purple. Relative luminance 0.142; OKLCH L 54.6% C 0.198 H 314.4°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#9940BE
RGBrgb(153, 64, 190)
HSLhsl(282, 50%, 50%)
HSVhsv(282, 66%, 75%)
CMYKcmyk(19.5%, 66.3%, 0%, 25.5%)
CIE-LABlab(44.46, 56.58, -50.23)
CIE-LCHlch(44.46, 75.66, 318.41°)
OKLaboklab(54.58% 0.1382 -0.1413)
OKLCHoklch(54.58% 0.198 314.4)
XYZxyz(24.2630, 14.1576, 50.1598)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9940BE #65BE40
analogous
#5A40BE #9940BE #BE40A4
triadic
#9940BE #BE9940 #40BE99
tetradic
#9940BE #BE5A40 #65BE40 #40A4BE
square
#9940BE #BE5A40 #65BE40 #40A4BE
split-complementary
#9940BE #A4BE40 #40BE5A
monochromatic
#4F2162 #743190 #9940BE #B26DCE #CA9BDD

Accessibility & contrast

On white

5.48
#9940BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#9940BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9940BE
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9940BE#FFFFFF#000000##FFFFFF
##9940BE1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C2
Deuteranopia (green-blind)
#3B6BBB
Tritanopia (blue-blind)
#96597A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9940be;
/* rgb */ color: rgb(153, 64, 190);
/* oklch */ color: oklch(54.6% 0.198 314.4);
Tailwind
colors: {
  custom: {
    50: '#bb7bd2',
    500: '#9940be',
    950: '#000000',
  },
}
SCSS
$custom: #9940be;
$custom-light: #bb7bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#9940be",
  "rgb": {
    "r": 153,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 282.381,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.54584,
    "c": 0.19761,
    "h": 314.4
  },
  "luminance": 0.14157
}

Semantic roles & 50–950 ramp

primary
#9940BE
secondary
#A1C990
accent
#D94F77
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9940BE

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

Preview Lab → · Contrast checker → · Palette generator →

#9940BE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva