#9040D3#9040D3

#9040D3 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.9% C 0.216 H 305.2°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#9040D3
RGBrgb(144, 64, 211)
HSLhsl(273, 63%, 54%)
HSVhsv(273, 70%, 83%)
CMYKcmyk(31.8%, 69.7%, 0%, 17.3%)
CIE-LABlab(44.66, 59.28, -62.12)
CIE-LCHlch(44.66, 85.87, 313.66°)
OKLaboklab(54.92% 0.1244 -0.1765)
OKLCHoklch(54.92% 0.216 305.2)
XYZxyz(25.0902, 14.2994, 63.0536)
Luminance0.1430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040D3 #83D340
analogous
#4740D3 #9040D3 #D340CD
triadic
#9040D3 #D39040 #40D390
tetradic
#9040D3 #D34740 #83D340 #40CDD3
square
#9040D3 #D34740 #83D340 #40CDD3
split-complementary
#9040D3 #CDD340 #40D347
monochromatic
#511D7C #7128AE #9040D3 #AD72DE #CAA3EA

Accessibility & contrast

On white

5.44
#9040D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#9040D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040D3
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040D3#FFFFFF#000000##FFFFFF
##9040D31.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D7
Deuteranopia (green-blind)
#006AD0
Tritanopia (blue-blind)
#846285
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9040d3;
/* rgb */ color: rgb(144, 64, 211);
/* oklch */ color: oklch(54.9% 0.216 305.2);
Tailwind
colors: {
  custom: {
    50: '#b67be1',
    500: '#9040d3',
    950: '#000000',
  },
}
SCSS
$custom: #9040d3;
$custom-light: #b67be1;
$custom-dark: #000000;
JSON
{
  "hex": "#9040d3",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 272.653,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54918,
    "c": 0.21591,
    "h": 305.2
  },
  "luminance": 0.14299
}

Semantic roles & 50–950 ramp

primary
#9040D3
secondary
#B5D798
accent
#E6428D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9040D3

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

Preview Lab → · Contrast checker → · Palette generator →

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