#9040BE#9040BE

#9040BE is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.4% C 0.194 H 310.7°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#9040BE
RGBrgb(144, 64, 190)
HSLhsl(278, 50%, 50%)
HSVhsv(278, 66%, 75%)
CMYKcmyk(24.2%, 66.3%, 0%, 25.5%)
CIE-LABlab(43.23, 54.57, -52.26)
CIE-LCHlch(43.23, 75.56, 316.24°)
OKLaboklab(53.45% 0.1267 -0.1475)
OKLCHoklch(53.45% 0.194 310.7)
XYZxyz(22.6275, 13.3143, 50.0831)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040BE #6EBE40
analogous
#5140BE #9040BE #BE40AD
triadic
#9040BE #BE9040 #40BE90
tetradic
#9040BE #BE5140 #6EBE40 #40ADBE
square
#9040BE #BE5140 #6EBE40 #40ADBE
split-complementary
#9040BE #ADBE40 #40BE51
monochromatic
#4B2162 #6D3190 #9040BE #AB6DCE #C59BDD

Accessibility & contrast

On white

5.73
#9040BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#9040BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040BE
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040BE#FFFFFF#000000##FFFFFF
##9040BE1.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C2
Deuteranopia (green-blind)
#3067BB
Tritanopia (blue-blind)
#8A5A7A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9040be;
/* rgb */ color: rgb(144, 64, 190);
/* oklch */ color: oklch(53.4% 0.194 310.7);
Tailwind
colors: {
  custom: {
    50: '#b47ad2',
    500: '#9040be',
    950: '#000000',
  },
}
SCSS
$custom: #9040be;
$custom-light: #b47ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#9040be",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 278.095,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.53445,
    "c": 0.19446,
    "h": 310.7
  },
  "luminance": 0.13314
}

Semantic roles & 50–950 ramp

primary
#9040BE
secondary
#A5C990
accent
#D94F81
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9040BE

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

Preview Lab → · Contrast checker → · Palette generator →

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