#9040C8#9040C8

#9040C8 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.1% C 0.205 H 307.9°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#9040C8
RGBrgb(144, 64, 200)
HSLhsl(275, 55%, 52%)
HSVhsv(275, 68%, 78%)
CMYKcmyk(28%, 68%, 0%, 21.6%)
CIE-LABlab(43.90, 56.79, -57.01)
CIE-LCHlch(43.90, 80.47, 314.89°)
OKLaboklab(54.13% 0.1258 -0.1615)
OKLCHoklch(54.13% 0.205 307.9)
XYZxyz(23.7582, 13.7666, 56.0380)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040C8 #78C840
analogous
#4C40C8 #9040C8 #C840BC
triadic
#9040C8 #C89040 #40C890
tetradic
#9040C8 #C84C40 #78C840 #40BCC8
square
#9040C8 #C84C40 #78C840 #40BCC8
split-complementary
#9040C8 #BCC840 #40C84C
monochromatic
#4E206E #6F2D9D #9040C8 #AC70D6 #C79FE3

Accessibility & contrast

On white

5.60
#9040C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#9040C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040C8
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040C8#FFFFFF#000000##FFFFFF
##9040C81.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CC
Deuteranopia (green-blind)
#2169C5
Tritanopia (blue-blind)
#875E7F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9040c8;
/* rgb */ color: rgb(144, 64, 200);
/* oklch */ color: oklch(54.1% 0.205 307.9);
Tailwind
colors: {
  custom: {
    50: '#b57bd9',
    500: '#9040c8',
    950: '#000000',
  },
}
SCSS
$custom: #9040c8;
$custom-light: #b57bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9040c8",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 275.294,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.54132,
    "c": 0.20467,
    "h": 307.9
  },
  "luminance": 0.13766
}

Semantic roles & 50–950 ramp

primary
#9040C8
secondary
#ADD094
accent
#DF4987
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9040C8

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

Preview Lab → · Contrast checker → · Palette generator →

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