#9A40CB#9A40CB

#9A40CB is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.6% C 0.211 H 311.1°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#9A40CB
RGBrgb(154, 64, 203)
HSLhsl(279, 57%, 52%)
HSVhsv(279, 68%, 80%)
CMYKcmyk(24.1%, 68.5%, 0%, 20.4%)
CIE-LABlab(45.43, 59.54, -56.21)
CIE-LCHlch(45.43, 81.88, 316.65°)
OKLaboklab(55.57% 0.1384 -0.1588)
OKLCHoklch(55.57% 0.211 311.1)
XYZxyz(25.9373, 14.8492, 57.9882)
Luminance0.1485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A40CB #71CB40
analogous
#5540CB #9A40CB #CB40B7
triadic
#9A40CB #CB9A40 #40CB9A
tetradic
#9A40CB #CB5540 #71CB40 #40B7CB
square
#9A40CB #CB5540 #71CB40 #40B7CB
split-complementary
#9A40CB #B7CB40 #40CB55
monochromatic
#541F72 #782CA2 #9A40CB #B370D8 #CDA0E5

Accessibility & contrast

On white

5.29
#9A40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#9A40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A40CB
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A40CB#FFFFFF#000000##FFFFFF
##9A40CB1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#2D6DC8
Tritanopia (blue-blind)
#945D81
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9a40cb;
/* rgb */ color: rgb(154, 64, 203);
/* oklch */ color: oklch(55.6% 0.211 311.1);
Tailwind
colors: {
  custom: {
    50: '#bc7cdc',
    500: '#9a40cb',
    950: '#000000',
  },
}
SCSS
$custom: #9a40cb;
$custom-light: #bc7cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9a40cb",
  "rgb": {
    "r": 154,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 278.849,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.55572,
    "c": 0.21067,
    "h": 311.1
  },
  "luminance": 0.14849
}

Semantic roles & 50–950 ramp

primary
#9A40CB
secondary
#AAD295
accent
#E0477D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9A40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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