#9040BF#9040BF

#9040BF is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.5% C 0.195 H 310.4°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#9040BF
RGBrgb(144, 64, 191)
HSLhsl(278, 50%, 50%)
HSVhsv(278, 66%, 75%)
CMYKcmyk(24.6%, 66.5%, 0%, 25.1%)
CIE-LABlab(43.30, 54.79, -52.74)
CIE-LCHlch(43.30, 76.05, 316.09°)
OKLaboklab(53.51% 0.1266 -0.1489)
OKLCHoklch(53.51% 0.195 310.4)
XYZxyz(22.7372, 13.3582, 50.6607)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040BF #6FBF40
analogous
#5040BF #9040BF #BF40AF
triadic
#9040BF #BF9040 #40BF90
tetradic
#9040BF #BF5040 #6FBF40 #40AFBF
square
#9040BF #BF5040 #6FBF40 #40AFBF
split-complementary
#9040BF #AFBF40 #40BF50
monochromatic
#4B2163 #6D3191 #9040BF #AB6ECE #C59CDE

Accessibility & contrast

On white

5.72
#9040BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#9040BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040BF
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040BF#FFFFFF#000000##FFFFFF
##9040BF1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#2E68BC
Tritanopia (blue-blind)
#8A5A7A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9040bf;
/* rgb */ color: rgb(144, 64, 191);
/* oklch */ color: oklch(53.5% 0.195 310.4);
Tailwind
colors: {
  custom: {
    50: '#b47ad3',
    500: '#9040bf',
    950: '#000000',
  },
}
SCSS
$custom: #9040bf;
$custom-light: #b47ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#9040bf",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 277.795,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.53513,
    "c": 0.19549,
    "h": 310.4
  },
  "luminance": 0.13358
}

Semantic roles & 50–950 ramp

primary
#9040BF
secondary
#A6CA91
accent
#D94E82
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9040BF

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

Preview Lab → · Contrast checker → · Palette generator →

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