#9040BB#9040BB

#9040BB is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.2% C 0.191 H 311.5°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#9040BB
RGBrgb(144, 64, 187)
HSLhsl(279, 49%, 49%)
HSVhsv(279, 66%, 73%)
CMYKcmyk(23%, 65.8%, 0%, 26.7%)
CIE-LABlab(43.04, 53.92, -50.82)
CIE-LCHlch(43.04, 74.09, 316.70°)
OKLaboklab(53.25% 0.1269 -0.1433)
OKLCHoklch(53.25% 0.191 311.5)
XYZxyz(22.3030, 13.1845, 48.3740)
Luminance0.1318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040BB #6BBB40
analogous
#5240BB #9040BB #BB40A9
triadic
#9040BB #BB9040 #40BB90
tetradic
#9040BB #BB5240 #6BBB40 #40A9BB
square
#9040BB #BB5240 #6BBB40 #40A9BB
split-complementary
#9040BB #A9BB40 #40BB52
monochromatic
#4A2160 #6D308D #9040BB #AB6CCD #C599DC

Accessibility & contrast

On white

5.77
#9040BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#9040BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040BB
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040BB#FFFFFF#000000##FFFFFF
##9040BB1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#3367B8
Tritanopia (blue-blind)
#8B5978
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9040bb;
/* rgb */ color: rgb(144, 64, 187);
/* oklch */ color: oklch(53.2% 0.191 311.5);
Tailwind
colors: {
  custom: {
    50: '#b47ad0',
    500: '#9040bb',
    950: '#000000',
  },
}
SCSS
$custom: #9040bb;
$custom-light: #b47ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#9040bb",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 279.024,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.53245,
    "c": 0.1914,
    "h": 311.5
  },
  "luminance": 0.13184
}

Semantic roles & 50–950 ramp

primary
#9040BB
secondary
#A3C88F
accent
#D94F7F
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #9040BB

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

Preview Lab → · Contrast checker → · Palette generator →

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