#9A40CC#9A40CC

#9A40CC is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.6% C 0.212 H 310.8°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#9A40CC
RGBrgb(154, 64, 204)
HSLhsl(279, 58%, 53%)
HSVhsv(279, 69%, 80%)
CMYKcmyk(24.5%, 68.6%, 0%, 20%)
CIE-LABlab(45.49, 59.76, -56.68)
CIE-LCHlch(45.49, 82.36, 316.51°)
OKLaboklab(55.64% 0.1383 -0.1602)
OKLCHoklch(55.64% 0.212 310.8)
XYZxyz(26.0568, 14.8971, 58.6178)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A40CC #72CC40
analogous
#5440CC #9A40CC #CC40B8
triadic
#9A40CC #CC9A40 #40CC9A
tetradic
#9A40CC #CC5440 #72CC40 #40B8CC
square
#9A40CC #CC5440 #72CC40 #40B8CC
split-complementary
#9A40CC #B8CC40 #40CC54
monochromatic
#551F73 #782CA3 #9A40CC #B470D9 #CDA1E6

Accessibility & contrast

On white

5.28
#9A40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#9A40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A40CC
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A40CC#FFFFFF#000000##FFFFFF
##9A40CC1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#2C6DC9
Tritanopia (blue-blind)
#935E81
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9a40cc;
/* rgb */ color: rgb(154, 64, 204);
/* oklch */ color: oklch(55.6% 0.212 310.8);
Tailwind
colors: {
  custom: {
    50: '#bc7cdc',
    500: '#9a40cc',
    950: '#000000',
  },
}
SCSS
$custom: #9a40cc;
$custom-light: #bc7cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9a40cc",
  "rgb": {
    "r": 154,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 278.571,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.5564,
    "c": 0.21164,
    "h": 310.8
  },
  "luminance": 0.14896
}

Semantic roles & 50–950 ramp

primary
#9A40CC
secondary
#ABD295
accent
#E1477E
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9A40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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