#9040D2#9040D2

#9040D2 is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.8% C 0.215 H 305.4°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9040D2
RGBrgb(144, 64, 210)
HSLhsl(273, 62%, 54%)
HSVhsv(273, 70%, 82%)
CMYKcmyk(31.4%, 69.5%, 0%, 17.6%)
CIE-LABlab(44.59, 59.05, -61.66)
CIE-LCHlch(44.59, 85.38, 313.76°)
OKLaboklab(54.85% 0.1245 -0.1751)
OKLCHoklch(54.85% 0.215 305.4)
XYZxyz(24.9653, 14.2494, 62.3955)
Luminance0.1425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040D2 #82D240
analogous
#4740D2 #9040D2 #D240CB
triadic
#9040D2 #D29040 #40D290
tetradic
#9040D2 #D24740 #82D240 #40CBD2
square
#9040D2 #D24740 #82D240 #40CBD2
split-complementary
#9040D2 #CBD240 #40D247
monochromatic
#501D7B #7129AC #9040D2 #AD72DE #CAA3E9

Accessibility & contrast

On white

5.45
#9040D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#9040D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040D2
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040D2#FFFFFF#000000##FFFFFF
##9040D21.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#006ACF
Tritanopia (blue-blind)
#846284
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9040d2;
/* rgb */ color: rgb(144, 64, 210);
/* oklch */ color: oklch(54.8% 0.215 305.4);
Tailwind
colors: {
  custom: {
    50: '#b67be1',
    500: '#9040d2',
    950: '#000000',
  },
}
SCSS
$custom: #9040d2;
$custom-light: #b67be1;
$custom-dark: #000000;
JSON
{
  "hex": "#9040d2",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 272.877,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54845,
    "c": 0.21489,
    "h": 305.4
  },
  "luminance": 0.14249
}

Semantic roles & 50–950 ramp

primary
#9040D2
secondary
#B4D698
accent
#E5438C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9040D2

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

Preview Lab → · Contrast checker → · Palette generator →

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