#9040D4#9040D4

#9040D4 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 55.0% C 0.217 H 304.9°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#9040D4
RGBrgb(144, 64, 212)
HSLhsl(272, 63%, 54%)
HSVhsv(272, 70%, 83%)
CMYKcmyk(32.1%, 69.8%, 0%, 16.9%)
CIE-LABlab(44.73, 59.51, -62.58)
CIE-LCHlch(44.73, 86.36, 313.56°)
OKLaboklab(54.99% 0.1242 -0.1778)
OKLCHoklch(54.99% 0.217 304.9)
XYZxyz(25.2160, 14.3497, 63.7159)
Luminance0.1435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040D4 #84D440
analogous
#4640D4 #9040D4 #D440CE
triadic
#9040D4 #D49040 #40D490
tetradic
#9040D4 #D44640 #84D440 #40CED4
square
#9040D4 #D44640 #84D440 #40CED4
split-complementary
#9040D4 #CED440 #40D446
monochromatic
#511C7D #7127AF #9040D4 #AD72DF #CAA4EA

Accessibility & contrast

On white

5.43
#9040D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#9040D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040D4
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040D4#FFFFFF#000000##FFFFFF
##9040D41.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D8
Deuteranopia (green-blind)
#006AD1
Tritanopia (blue-blind)
#836286
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9040d4;
/* rgb */ color: rgb(144, 64, 212);
/* oklch */ color: oklch(55.0% 0.217 304.9);
Tailwind
colors: {
  custom: {
    50: '#b67be2',
    500: '#9040d4',
    950: '#000000',
  },
}
SCSS
$custom: #9040d4;
$custom-light: #b67be2;
$custom-dark: #000000;
JSON
{
  "hex": "#9040d4",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 272.432,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54991,
    "c": 0.21693,
    "h": 304.9
  },
  "luminance": 0.1435
}

Semantic roles & 50–950 ramp

primary
#9040D4
secondary
#B5D798
accent
#E6428D
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #9040D4

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

Preview Lab → · Contrast checker → · Palette generator →

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