#9040DD#9040DD

#9040DD is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.7% C 0.226 H 302.9°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#9040DD
RGBrgb(144, 64, 221)
HSLhsl(271, 70%, 56%)
HSVhsv(271, 71%, 87%)
CMYKcmyk(34.8%, 71%, 0%, 13.3%)
CIE-LABlab(45.38, 61.58, -66.67)
CIE-LCHlch(45.38, 90.76, 312.73°)
OKLaboklab(55.66% 0.1228 -0.1899)
OKLCHoklch(55.66% 0.226 302.9)
XYZxyz(26.3831, 14.8165, 69.8625)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040DD #8DDD40
analogous
#4140DD #9040DD #DD40DC
triadic
#9040DD #DD9040 #40DD90
tetradic
#9040DD #DD4140 #8DDD40 #40DCDD
square
#9040DD #DD4140 #8DDD40 #40DCDD
split-complementary
#9040DD #DCDD40 #40DD41
monochromatic
#52198A #7122BE #9040DD #AE74E6 #CCA8EF

Accessibility & contrast

On white

5.30
#9040DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#9040DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040DD
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040DD#FFFFFF#000000##FFFFFF
##9040DD1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE2
Deuteranopia (green-blind)
#006BDA
Tritanopia (blue-blind)
#80668B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9040dd;
/* rgb */ color: rgb(144, 64, 221);
/* oklch */ color: oklch(55.7% 0.226 302.9);
Tailwind
colors: {
  custom: {
    50: '#b67be9',
    500: '#9040dd',
    950: '#000000',
  },
}
SCSS
$custom: #9040dd;
$custom-light: #b67be9;
$custom-dark: #000000;
JSON
{
  "hex": "#9040dd",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 270.573,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55659,
    "c": 0.2261,
    "h": 302.9
  },
  "luminance": 0.14817
}

Semantic roles & 50–950 ramp

primary
#9040DD
secondary
#BCDD9C
accent
#ED3B92
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9040DD

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

Preview Lab → · Contrast checker → · Palette generator →

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