#9040B8#9040B8

#9040B8 is a mid, vivid purple. Relative luminance 0.131; OKLCH L 53.0% C 0.188 H 312.4°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#9040B8
RGBrgb(144, 64, 184)
HSLhsl(280, 48%, 49%)
HSVhsv(280, 65%, 72%)
CMYKcmyk(21.7%, 65.2%, 0%, 27.8%)
CIE-LABlab(42.85, 53.26, -49.36)
CIE-LCHlch(42.85, 72.62, 317.18°)
OKLaboklab(53.05% 0.1271 -0.139)
OKLCHoklch(53.05% 0.188 312.4)
XYZxyz(21.9852, 13.0574, 46.7003)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040B8 #68B840
analogous
#5440B8 #9040B8 #B840A4
triadic
#9040B8 #B89040 #40B890
tetradic
#9040B8 #B85440 #68B840 #40A4B8
square
#9040B8 #B85440 #68B840 #40A4B8
split-complementary
#9040B8 #A4B840 #40B854
monochromatic
#49205D #6C308B #9040B8 #AB6ACB #C497DB

Accessibility & contrast

On white

5.81
#9040B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#9040B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040B8
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040B8#FFFFFF#000000##FFFFFF
##9040B81.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#3667B5
Tritanopia (blue-blind)
#8C5876
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9040b8;
/* rgb */ color: rgb(144, 64, 184);
/* oklch */ color: oklch(53.0% 0.188 312.4);
Tailwind
colors: {
  custom: {
    50: '#b47ace',
    500: '#9040b8',
    950: '#000000',
  },
}
SCSS
$custom: #9040b8;
$custom-light: #b47ace;
$custom-dark: #000000;
JSON
{
  "hex": "#9040b8",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 280,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.53047,
    "c": 0.18834,
    "h": 312.4
  },
  "luminance": 0.13057
}

Semantic roles & 50–950 ramp

primary
#9040B8
secondary
#A0C78D
accent
#D8507D
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #9040B8

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

Preview Lab → · Contrast checker → · Palette generator →

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