#9A40C8#9A40C8

#9A40C8 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.4% C 0.208 H 311.9°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#9A40C8
RGBrgb(154, 64, 200)
HSLhsl(280, 55%, 52%)
HSVhsv(280, 68%, 78%)
CMYKcmyk(23%, 68%, 0%, 21.6%)
CIE-LABlab(45.23, 58.90, -54.79)
CIE-LCHlch(45.23, 80.44, 317.07°)
OKLaboklab(55.37% 0.1387 -0.1546)
OKLCHoklch(55.37% 0.208 311.9)
XYZxyz(25.5832, 14.7076, 56.1236)
Luminance0.1471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A40C8 #6EC840
analogous
#5640C8 #9A40C8 #C840B2
triadic
#9A40C8 #C89A40 #40C89A
tetradic
#9A40C8 #C85640 #6EC840 #40B2C8
square
#9A40C8 #C85640 #6EC840 #40B2C8
split-complementary
#9A40C8 #B2C840 #40C856
monochromatic
#53206E #782D9D #9A40C8 #B370D6 #CC9FE3

Accessibility & contrast

On white

5.33
#9A40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#9A40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A40C8
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A40C8#FFFFFF#000000##FFFFFF
##9A40C81.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#316DC5
Tritanopia (blue-blind)
#955C7F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9a40c8;
/* rgb */ color: rgb(154, 64, 200);
/* oklch */ color: oklch(55.4% 0.208 311.9);
Tailwind
colors: {
  custom: {
    50: '#bc7cd9',
    500: '#9a40c8',
    950: '#000000',
  },
}
SCSS
$custom: #9a40c8;
$custom-light: #bc7cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9a40c8",
  "rgb": {
    "r": 154,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 279.706,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.5537,
    "c": 0.20773,
    "h": 311.9
  },
  "luminance": 0.14707
}

Semantic roles & 50–950 ramp

primary
#9A40C8
secondary
#A8D094
accent
#DF497C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9A40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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