#9040CA#9040CA

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

Color values

HEX#9040CA
RGBrgb(144, 64, 202)
HSLhsl(275, 57%, 52%)
HSVhsv(275, 68%, 79%)
CMYKcmyk(28.7%, 68.3%, 0%, 20.8%)
CIE-LABlab(44.03, 57.24, -57.95)
CIE-LCHlch(44.03, 81.45, 314.65°)
OKLaboklab(54.27% 0.1256 -0.1642)
OKLCHoklch(54.27% 0.207 307.4)
XYZxyz(23.9934, 13.8607, 57.2771)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040CA #7ACA40
analogous
#4B40CA #9040CA #CA40BF
triadic
#9040CA #CA9040 #40CA90
tetradic
#9040CA #CA4B40 #7ACA40 #40BFCA
square
#9040CA #CA4B40 #7ACA40 #40BFCA
split-complementary
#9040CA #BFCA40 #40CA4B
monochromatic
#4E1F70 #702CA0 #9040CA #AC70D7 #C8A0E5

Accessibility & contrast

On white

5.57
#9040CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#9040CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040CA
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040CA#FFFFFF#000000##FFFFFF
##9040CA1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#1C69C7
Tritanopia (blue-blind)
#875E80
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9040ca;
/* rgb */ color: rgb(144, 64, 202);
/* oklch */ color: oklch(54.3% 0.207 307.4);
Tailwind
colors: {
  custom: {
    50: '#b57bdb',
    500: '#9040ca',
    950: '#000000',
  },
}
SCSS
$custom: #9040ca;
$custom-light: #b57bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9040ca",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 274.783,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.54273,
    "c": 0.20672,
    "h": 307.4
  },
  "luminance": 0.1386
}

Semantic roles & 50–950 ramp

primary
#9040CA
secondary
#AED195
accent
#E04888
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9040CA

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

Preview Lab → · Contrast checker → · Palette generator →

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