#9040CB#9040CB

#9040CB is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.3% C 0.208 H 307.1°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#9040CB
RGBrgb(144, 64, 203)
HSLhsl(275, 57%, 52%)
HSVhsv(275, 68%, 80%)
CMYKcmyk(29.1%, 68.5%, 0%, 20.4%)
CIE-LABlab(44.10, 57.47, -58.41)
CIE-LCHlch(44.10, 81.94, 314.53°)
OKLaboklab(54.34% 0.1254 -0.1656)
OKLCHoklch(54.34% 0.208 307.1)
XYZxyz(24.1122, 13.9082, 57.9026)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040CB #7BCB40
analogous
#4A40CB #9040CB #CB40C1
triadic
#9040CB #CB9040 #40CB90
tetradic
#9040CB #CB4A40 #7BCB40 #40C1CB
square
#9040CB #CB4A40 #7BCB40 #40C1CB
split-complementary
#9040CB #C1CB40 #40CB4A
monochromatic
#4F1F72 #702CA2 #9040CB #AC70D8 #C8A0E5

Accessibility & contrast

On white

5.55
#9040CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#9040CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040CB
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040CB#FFFFFF#000000##FFFFFF
##9040CB1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#1A69C8
Tritanopia (blue-blind)
#865F81
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9040cb;
/* rgb */ color: rgb(144, 64, 203);
/* oklch */ color: oklch(54.3% 0.208 307.1);
Tailwind
colors: {
  custom: {
    50: '#b57bdc',
    500: '#9040cb',
    950: '#000000',
  },
}
SCSS
$custom: #9040cb;
$custom-light: #b57bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9040cb",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 274.532,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54343,
    "c": 0.20774,
    "h": 307.1
  },
  "luminance": 0.13908
}

Semantic roles & 50–950 ramp

primary
#9040CB
secondary
#AFD295
accent
#E04788
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9040CB

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

Preview Lab → · Contrast checker → · Palette generator →

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