#9A40D2#9A40D2

#9A40D2 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.1% C 0.218 H 309.3°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9A40D2
RGBrgb(154, 64, 210)
HSLhsl(277, 62%, 54%)
HSVhsv(277, 70%, 82%)
CMYKcmyk(26.7%, 69.5%, 0%, 17.6%)
CIE-LABlab(45.89, 61.05, -59.48)
CIE-LCHlch(45.89, 85.24, 315.74°)
OKLaboklab(56.05% 0.1377 -0.1684)
OKLCHoklch(56.05% 0.218 309.3)
XYZxyz(26.7904, 15.1905, 62.4810)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A40D2 #78D240
analogous
#5140D2 #9A40D2 #D240C1
triadic
#9A40D2 #D29A40 #40D29A
tetradic
#9A40D2 #D25140 #78D240 #40C1D2
square
#9A40D2 #D25140 #78D240 #40C1D2
split-complementary
#9A40D2 #C1D240 #40D251
monochromatic
#571D7B #7A29AC #9A40D2 #B472DE #CEA3E9

Accessibility & contrast

On white

5.20
#9A40D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9A40D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A40D2
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A40D2#FFFFFF#000000##FFFFFF
##9A40D21.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#226ECF
Tritanopia (blue-blind)
#926085
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9a40d2;
/* rgb */ color: rgb(154, 64, 210);
/* oklch */ color: oklch(56.1% 0.218 309.3);
Tailwind
colors: {
  custom: {
    50: '#bc7ce1',
    500: '#9a40d2',
    950: '#000000',
  },
}
SCSS
$custom: #9a40d2;
$custom-light: #bc7ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a40d2",
  "rgb": {
    "r": 154,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 276.986,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56054,
    "c": 0.21752,
    "h": 309.3
  },
  "luminance": 0.1519
}

Semantic roles & 50–950 ramp

primary
#9A40D2
secondary
#B0D698
accent
#E54381
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9A40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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