#9040CC#9040CC

#9040CC is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.4% C 0.209 H 306.9°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#9040CC
RGBrgb(144, 64, 204)
HSLhsl(274, 58%, 53%)
HSVhsv(274, 69%, 80%)
CMYKcmyk(29.4%, 68.6%, 0%, 20%)
CIE-LABlab(44.17, 57.69, -58.88)
CIE-LCHlch(44.17, 82.43, 314.42°)
OKLaboklab(54.41% 0.1253 -0.167)
OKLCHoklch(54.41% 0.209 306.9)
XYZxyz(24.2318, 13.9560, 58.5323)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040CC #7CCC40
analogous
#4A40CC #9040CC #CC40C2
triadic
#9040CC #CC9040 #40CC90
tetradic
#9040CC #CC4A40 #7CCC40 #40C2CC
square
#9040CC #CC4A40 #7CCC40 #40C2CC
split-complementary
#9040CC #C2CC40 #40CC4A
monochromatic
#4F1F73 #702CA3 #9040CC #AC70D9 #C8A1E6

Accessibility & contrast

On white

5.54
#9040CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#9040CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040CC
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040CC#FFFFFF#000000##FFFFFF
##9040CC1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D0
Deuteranopia (green-blind)
#1869C9
Tritanopia (blue-blind)
#865F81
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9040cc;
/* rgb */ color: rgb(144, 64, 204);
/* oklch */ color: oklch(54.4% 0.209 306.9);
Tailwind
colors: {
  custom: {
    50: '#b57bdc',
    500: '#9040cc',
    950: '#000000',
  },
}
SCSS
$custom: #9040cc;
$custom-light: #b57bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9040cc",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 274.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54414,
    "c": 0.20876,
    "h": 306.9
  },
  "luminance": 0.13956
}

Semantic roles & 50–950 ramp

primary
#9040CC
secondary
#B0D295
accent
#E14789
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9040CC

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

Preview Lab → · Contrast checker → · Palette generator →

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