#9040CE#9040CE

#9040CE is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.6% C 0.211 H 306.4°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#9040CE
RGBrgb(144, 64, 206)
HSLhsl(274, 59%, 53%)
HSVhsv(274, 69%, 81%)
CMYKcmyk(30.1%, 68.9%, 0%, 19.2%)
CIE-LABlab(44.31, 58.14, -59.81)
CIE-LCHlch(44.31, 83.41, 314.19°)
OKLaboklab(54.56% 0.1251 -0.1697)
OKLCHoklch(54.56% 0.211 306.4)
XYZxyz(24.4732, 14.0526, 59.8037)
Luminance0.1405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040CE #7ECE40
analogous
#4940CE #9040CE #CE40C5
triadic
#9040CE #CE9040 #40CE90
tetradic
#9040CE #CE4940 #7ECE40 #40C5CE
square
#9040CE #CE4940 #7ECE40 #40C5CE
split-complementary
#9040CE #C5CE40 #40CE49
monochromatic
#4F1E75 #702BA6 #9040CE #AC71DA #C9A1E7

Accessibility & contrast

On white

5.51
#9040CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#9040CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040CE
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040CE#FFFFFF#000000##FFFFFF
##9040CE1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D2
Deuteranopia (green-blind)
#1269CB
Tritanopia (blue-blind)
#856082
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9040ce;
/* rgb */ color: rgb(144, 64, 206);
/* oklch */ color: oklch(54.6% 0.211 306.4);
Tailwind
colors: {
  custom: {
    50: '#b57bde',
    500: '#9040ce',
    950: '#000000',
  },
}
SCSS
$custom: #9040ce;
$custom-light: #b57bde;
$custom-dark: #000000;
JSON
{
  "hex": "#9040ce",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 273.803,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54557,
    "c": 0.21081,
    "h": 306.4
  },
  "luminance": 0.14052
}

Semantic roles & 50–950 ramp

primary
#9040CE
secondary
#B1D496
accent
#E2458A
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9040CE

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

Preview Lab → · Contrast checker → · Palette generator →

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