#9040C6#9040C6

#9040C6 is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.0% C 0.203 H 308.4°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#9040C6
RGBrgb(144, 64, 198)
HSLhsl(276, 54%, 51%)
HSVhsv(276, 68%, 78%)
CMYKcmyk(27.3%, 67.7%, 0%, 22.4%)
CIE-LABlab(43.76, 56.34, -56.07)
CIE-LCHlch(43.76, 79.49, 315.14°)
OKLaboklab(53.99% 0.126 -0.1587)
OKLCHoklch(53.99% 0.203 308.4)
XYZxyz(23.5260, 13.6737, 54.8151)
Luminance0.1367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040C6 #76C640
analogous
#4D40C6 #9040C6 #C640B9
triadic
#9040C6 #C69040 #40C690
tetradic
#9040C6 #C64D40 #76C640 #40B9C6
square
#9040C6 #C64D40 #76C640 #40B9C6
split-complementary
#9040C6 #B9C640 #40C64D
monochromatic
#4D206C #6F2E9B #9040C6 #AB6FD4 #C79EE2

Accessibility & contrast

On white

5.62
#9040C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#9040C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040C6
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040C6#FFFFFF#000000##FFFFFF
##9040C61.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CA
Deuteranopia (green-blind)
#2468C3
Tritanopia (blue-blind)
#885D7E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9040c6;
/* rgb */ color: rgb(144, 64, 198);
/* oklch */ color: oklch(54.0% 0.203 308.4);
Tailwind
colors: {
  custom: {
    50: '#b57bd8',
    500: '#9040c6',
    950: '#000000',
  },
}
SCSS
$custom: #9040c6;
$custom-light: #b57bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#9040c6",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 275.821,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.53992,
    "c": 0.20263,
    "h": 308.4
  },
  "luminance": 0.13673
}

Semantic roles & 50–950 ramp

primary
#9040C6
secondary
#ABCE93
accent
#DD4A86
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A15
muted
#817C83

Preview Lab

Preview with #9040C6

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

Preview Lab → · Contrast checker → · Palette generator →

#9040C6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva