#9A40CF#9A40CF

#9A40CF is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.8% C 0.215 H 310.0°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9A40CF
RGBrgb(154, 64, 207)
HSLhsl(278, 60%, 53%)
HSVhsv(278, 69%, 81%)
CMYKcmyk(25.6%, 69.1%, 0%, 18.8%)
CIE-LABlab(45.69, 60.40, -58.09)
CIE-LCHlch(45.69, 83.80, 316.12°)
OKLaboklab(55.85% 0.138 -0.1643)
OKLCHoklch(55.85% 0.215 310)
XYZxyz(26.4201, 15.0424, 60.5311)
Luminance0.1504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A40CF #75CF40
analogous
#5240CF #9A40CF #CF40BD
triadic
#9A40CF #CF9A40 #40CF9A
tetradic
#9A40CF #CF5240 #75CF40 #40BDCF
square
#9A40CF #CF5240 #75CF40 #40BDCF
split-complementary
#9A40CF #BDCF40 #40CF52
monochromatic
#561E77 #792AA8 #9A40CF #B471DB #CEA2E8

Accessibility & contrast

On white

5.24
#9A40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#9A40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A40CF
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A40CF#FFFFFF#000000##FFFFFF
##9A40CF1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D3
Deuteranopia (green-blind)
#276ECC
Tritanopia (blue-blind)
#935F83
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9a40cf;
/* rgb */ color: rgb(154, 64, 207);
/* oklch */ color: oklch(55.8% 0.215 310.0);
Tailwind
colors: {
  custom: {
    50: '#bc7cde',
    500: '#9a40cf',
    950: '#000000',
  },
}
SCSS
$custom: #9a40cf;
$custom-light: #bc7cde;
$custom-dark: #000000;
JSON
{
  "hex": "#9a40cf",
  "rgb": {
    "r": 154,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 277.762,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.55846,
    "c": 0.21459,
    "h": 310
  },
  "luminance": 0.15042
}

Semantic roles & 50–950 ramp

primary
#9A40CF
secondary
#ADD497
accent
#E3457F
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9A40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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