#9A40CD#9A40CD

#9A40CD is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.7% C 0.213 H 310.6°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#9A40CD
RGBrgb(154, 64, 205)
HSLhsl(278, 59%, 53%)
HSVhsv(278, 69%, 80%)
CMYKcmyk(24.9%, 68.8%, 0%, 19.6%)
CIE-LABlab(45.56, 59.97, -57.15)
CIE-LCHlch(45.56, 82.84, 316.38°)
OKLaboklab(55.71% 0.1382 -0.1615)
OKLCHoklch(55.71% 0.213 310.6)
XYZxyz(26.1772, 14.9452, 59.2515)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A40CD #73CD40
analogous
#5440CD #9A40CD #CD40B9
triadic
#9A40CD #CD9A40 #40CD9A
tetradic
#9A40CD #CD5440 #73CD40 #40B9CD
square
#9A40CD #CD5440 #73CD40 #40B9CD
split-complementary
#9A40CD #B9CD40 #40CD54
monochromatic
#551E74 #792BA5 #9A40CD #B471DA #CDA1E6

Accessibility & contrast

On white

5.26
#9A40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#9A40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A40CD
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A40CD#FFFFFF#000000##FFFFFF
##9A40CD1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#2A6DCA
Tritanopia (blue-blind)
#935E82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9a40cd;
/* rgb */ color: rgb(154, 64, 205);
/* oklch */ color: oklch(55.7% 0.213 310.6);
Tailwind
colors: {
  custom: {
    50: '#bc7cdd',
    500: '#9a40cd',
    950: '#000000',
  },
}
SCSS
$custom: #9a40cd;
$custom-light: #bc7cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9a40cd",
  "rgb": {
    "r": 154,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 278.298,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55709,
    "c": 0.21262,
    "h": 310.6
  },
  "luminance": 0.14945
}

Semantic roles & 50–950 ramp

primary
#9A40CD
secondary
#ACD396
accent
#E2467E
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9A40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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