#9040BC#9040BC

#9040BC is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.3% C 0.192 H 311.2°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#9040BC
RGBrgb(144, 64, 188)
HSLhsl(279, 49%, 49%)
HSVhsv(279, 66%, 74%)
CMYKcmyk(23.4%, 66%, 0%, 26.3%)
CIE-LABlab(43.10, 54.13, -51.30)
CIE-LCHlch(43.10, 74.58, 316.54°)
OKLaboklab(53.31% 0.1268 -0.1447)
OKLCHoklch(53.31% 0.192 311.2)
XYZxyz(22.4104, 13.2275, 48.9398)
Luminance0.1323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040BC #6CBC40
analogous
#5240BC #9040BC #BC40AA
triadic
#9040BC #BC9040 #40BC90
tetradic
#9040BC #BC5240 #6CBC40 #40AABC
square
#9040BC #BC5240 #6CBC40 #40AABC
split-complementary
#9040BC #AABC40 #40BC52
monochromatic
#4A2161 #6D308E #9040BC #AB6CCD #C59ADD

Accessibility & contrast

On white

5.76
#9040BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#9040BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040BC
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040BC#FFFFFF#000000##FFFFFF
##9040BC1.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#3267B9
Tritanopia (blue-blind)
#8B5979
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9040bc;
/* rgb */ color: rgb(144, 64, 188);
/* oklch */ color: oklch(53.3% 0.192 311.2);
Tailwind
colors: {
  custom: {
    50: '#b47ad1',
    500: '#9040bc',
    950: '#000000',
  },
}
SCSS
$custom: #9040bc;
$custom-light: #b47ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#9040bc",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 278.71,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.53311,
    "c": 0.19242,
    "h": 311.2
  },
  "luminance": 0.13227
}

Semantic roles & 50–950 ramp

primary
#9040BC
secondary
#A4C98F
accent
#D94F80
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #9040BC

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

Preview Lab → · Contrast checker → · Palette generator →

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