#9A40CA#9A40CA

#9A40CA is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.5% C 0.210 H 311.4°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#9A40CA
RGBrgb(154, 64, 202)
HSLhsl(279, 57%, 52%)
HSVhsv(279, 68%, 79%)
CMYKcmyk(23.8%, 68.3%, 0%, 20.8%)
CIE-LABlab(45.36, 59.33, -55.73)
CIE-LCHlch(45.36, 81.40, 316.79°)
OKLaboklab(55.51% 0.1385 -0.1574)
OKLCHoklch(55.51% 0.21 311.4)
XYZxyz(25.8185, 14.8017, 57.3626)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A40CA #70CA40
analogous
#5540CA #9A40CA #CA40B5
triadic
#9A40CA #CA9A40 #40CA9A
tetradic
#9A40CA #CA5540 #70CA40 #40B5CA
square
#9A40CA #CA5540 #70CA40 #40B5CA
split-complementary
#9A40CA #B5CA40 #40CA55
monochromatic
#541F70 #782CA0 #9A40CA #B370D7 #CDA0E5

Accessibility & contrast

On white

5.30
#9A40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#9A40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A40CA
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A40CA#FFFFFF#000000##FFFFFF
##9A40CA1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#2F6DC7
Tritanopia (blue-blind)
#945D80
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9a40ca;
/* rgb */ color: rgb(154, 64, 202);
/* oklch */ color: oklch(55.5% 0.210 311.4);
Tailwind
colors: {
  custom: {
    50: '#bc7cdb',
    500: '#9a40ca',
    950: '#000000',
  },
}
SCSS
$custom: #9a40ca;
$custom-light: #bc7cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9a40ca",
  "rgb": {
    "r": 154,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 279.13,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55505,
    "c": 0.20969,
    "h": 311.4
  },
  "luminance": 0.14801
}

Semantic roles & 50–950 ramp

primary
#9A40CA
secondary
#AAD195
accent
#E0487D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9A40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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