#9940D5#9940D5

#9940D5 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.1% C 0.220 H 308.1°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9940D5
RGBrgb(153, 64, 213)
HSLhsl(276, 64%, 54%)
HSVhsv(276, 70%, 84%)
CMYKcmyk(28.2%, 70%, 0%, 16.5%)
CIE-LABlab(45.97, 61.50, -61.10)
CIE-LCHlch(45.97, 86.69, 315.19°)
OKLaboklab(56.14% 0.136 -0.1732)
OKLCHoklch(56.14% 0.22 308.1)
XYZxyz(26.9780, 15.2436, 64.4590)
Luminance0.1524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9940D5 #7CD540
analogous
#4F40D5 #9940D5 #D540C6
triadic
#9940D5 #D59940 #40D599
tetradic
#9940D5 #D54F40 #7CD540 #40C6D5
square
#9940D5 #D54F40 #7CD540 #40C6D5
split-complementary
#9940D5 #C6D540 #40D54F
monochromatic
#571C7F #7927B1 #9940D5 #B472E0 #CFA4EB

Accessibility & contrast

On white

5.19
#9940D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#9940D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9940D5
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9940D5#FFFFFF#000000##FFFFFF
##9940D51.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD9
Deuteranopia (green-blind)
#196ED2
Tritanopia (blue-blind)
#906286
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9940d5;
/* rgb */ color: rgb(153, 64, 213);
/* oklch */ color: oklch(56.1% 0.220 308.1);
Tailwind
colors: {
  custom: {
    50: '#bc7ce3',
    500: '#9940d5',
    950: '#000000',
  },
}
SCSS
$custom: #9940d5;
$custom-light: #bc7ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#9940d5",
  "rgb": {
    "r": 153,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 275.839,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.56142,
    "c": 0.22019,
    "h": 308.1
  },
  "luminance": 0.15243
}

Semantic roles & 50–950 ramp

primary
#9940D5
secondary
#B2D899
accent
#E74184
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #9940D5

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

Preview Lab → · Contrast checker → · Palette generator →

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