#9040BA#9040BA

#9040BA is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.2% C 0.190 H 311.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#9040BA
RGBrgb(144, 64, 186)
HSLhsl(279, 49%, 49%)
HSVhsv(279, 66%, 73%)
CMYKcmyk(22.6%, 65.6%, 0%, 27.1%)
CIE-LABlab(42.98, 53.70, -50.33)
CIE-LCHlch(42.98, 73.60, 316.85°)
OKLaboklab(53.18% 0.127 -0.1419)
OKLCHoklch(53.18% 0.19 311.8)
XYZxyz(22.1963, 13.1418, 47.8122)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040BA #6ABA40
analogous
#5340BA #9040BA #BA40A7
triadic
#9040BA #BA9040 #40BA90
tetradic
#9040BA #BA5340 #6ABA40 #40A7BA
square
#9040BA #BA5340 #6ABA40 #40A7BA
split-complementary
#9040BA #A7BA40 #40BA53
monochromatic
#49215F #6D308C #9040BA #AB6BCC #C599DC

Accessibility & contrast

On white

5.79
#9040BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#9040BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040BA
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040BA#FFFFFF#000000##FFFFFF
##9040BA1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#3467B7
Tritanopia (blue-blind)
#8B5877
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9040ba;
/* rgb */ color: rgb(144, 64, 186);
/* oklch */ color: oklch(53.2% 0.190 311.8);
Tailwind
colors: {
  custom: {
    50: '#b47acf',
    500: '#9040ba',
    950: '#000000',
  },
}
SCSS
$custom: #9040ba;
$custom-light: #b47acf;
$custom-dark: #000000;
JSON
{
  "hex": "#9040ba",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 279.344,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.53178,
    "c": 0.19038,
    "h": 311.8
  },
  "luminance": 0.13141
}

Semantic roles & 50–950 ramp

primary
#9040BA
secondary
#A2C88E
accent
#D84F7F
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #9040BA

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

Preview Lab → · Contrast checker → · Palette generator →

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