#9A40DF#9A40DF

#9A40DF is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 57.0% C 0.230 H 306.1°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#9A40DF
RGBrgb(154, 64, 223)
HSLhsl(274, 71%, 56%)
HSVhsv(274, 71%, 87%)
CMYKcmyk(30.9%, 71.3%, 0%, 12.5%)
CIE-LABlab(46.80, 63.89, -65.45)
CIE-LCHlch(46.80, 91.47, 314.31°)
OKLaboklab(56.98% 0.1358 -0.186)
OKLCHoklch(56.98% 0.23 306.1)
XYZxyz(28.4762, 15.8648, 71.3598)
Luminance0.1587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A40DF #85DF40
analogous
#4B40DF #9A40DF #DF40D5
triadic
#9A40DF #DF9A40 #40DF9A
tetradic
#9A40DF #DF4B40 #85DF40 #40D5DF
square
#9A40DF #DF4B40 #85DF40 #40D5DF
split-complementary
#9A40DF #D5DF40 #40DF4B
monochromatic
#5A188D #7C20C1 #9A40DF #B674E8 #D1A9F1

Accessibility & contrast

On white

5.03
#9A40DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#9A40DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A40DF
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A40DF#FFFFFF#000000##FFFFFF
##9A40DF1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE4
Deuteranopia (green-blind)
#006FDC
Tritanopia (blue-blind)
#8E658C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9a40df;
/* rgb */ color: rgb(154, 64, 223);
/* oklch */ color: oklch(57.0% 0.230 306.1);
Tailwind
colors: {
  custom: {
    50: '#bd7cea',
    500: '#9a40df',
    950: '#000000',
  },
}
SCSS
$custom: #9a40df;
$custom-light: #bd7cea;
$custom-dark: #000000;
JSON
{
  "hex": "#9a40df",
  "rgb": {
    "r": 154,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 273.962,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56981,
    "c": 0.23027,
    "h": 306.1
  },
  "luminance": 0.15865
}

Semantic roles & 50–950 ramp

primary
#9A40DF
secondary
#B9DE9D
accent
#EE3A88
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9A40DF

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

Preview Lab → · Contrast checker → · Palette generator →

#9A40DF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva