#9040DA#9040DA

#9040DA is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.4% C 0.223 H 303.5°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#9040DA
RGBrgb(144, 64, 218)
HSLhsl(271, 68%, 55%)
HSVhsv(271, 71%, 85%)
CMYKcmyk(33.9%, 70.6%, 0%, 14.5%)
CIE-LABlab(45.16, 60.89, -65.31)
CIE-LCHlch(45.16, 89.29, 312.99°)
OKLaboklab(55.43% 0.1233 -0.1859)
OKLCHoklch(55.43% 0.223 303.5)
XYZxyz(25.9870, 14.6581, 67.7763)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040DA #8ADA40
analogous
#4340DA #9040DA #DA40D7
triadic
#9040DA #DA9040 #40DA90
tetradic
#9040DA #DA4340 #8ADA40 #40D7DA
square
#9040DA #DA4340 #8ADA40 #40D7DA
split-complementary
#9040DA #D7DA40 #40DA43
monochromatic
#521A86 #7124B9 #9040DA #AE73E4 #CCA7EE

Accessibility & contrast

On white

5.34
#9040DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#9040DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040DA
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040DA#FFFFFF#000000##FFFFFF
##9040DA1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DE
Deuteranopia (green-blind)
#006BD7
Tritanopia (blue-blind)
#816589
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9040da;
/* rgb */ color: rgb(144, 64, 218);
/* oklch */ color: oklch(55.4% 0.223 303.5);
Tailwind
colors: {
  custom: {
    50: '#b67be6',
    500: '#9040da',
    950: '#000000',
  },
}
SCSS
$custom: #9040da;
$custom-light: #b67be6;
$custom-dark: #000000;
JSON
{
  "hex": "#9040da",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 218
  },
  "hsl": {
    "h": 271.169,
    "s": 67.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55434,
    "c": 0.22305,
    "h": 303.5
  },
  "luminance": 0.14658
}

Semantic roles & 50–950 ramp

primary
#9040DA
secondary
#BADB9B
accent
#EA3D91
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9040DA

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

Preview Lab → · Contrast checker → · Palette generator →

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