#9040CF#9040CF

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

Color values

HEX#9040CF
RGBrgb(144, 64, 207)
HSLhsl(274, 60%, 53%)
HSVhsv(274, 69%, 81%)
CMYKcmyk(30.4%, 69.1%, 0%, 18.8%)
CIE-LABlab(44.38, 58.37, -60.27)
CIE-LCHlch(44.38, 83.90, 314.08°)
OKLaboklab(54.63% 0.1249 -0.1711)
OKLCHoklch(54.63% 0.212 306.1)
XYZxyz(24.5950, 14.1013, 60.4455)
Luminance0.1410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040CF #7FCF40
analogous
#4840CF #9040CF #CF40C7
triadic
#9040CF #CF9040 #40CF90
tetradic
#9040CF #CF4840 #7FCF40 #40C7CF
square
#9040CF #CF4840 #7FCF40 #40C7CF
split-complementary
#9040CF #C7CF40 #40CF48
monochromatic
#501E77 #702AA8 #9040CF #AC71DB #C9A2E8

Accessibility & contrast

On white

5.50
#9040CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#9040CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040CF
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040CF#FFFFFF#000000##FFFFFF
##9040CF1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D3
Deuteranopia (green-blind)
#0E69CC
Tritanopia (blue-blind)
#856083
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9040cf;
/* rgb */ color: rgb(144, 64, 207);
/* oklch */ color: oklch(54.6% 0.212 306.1);
Tailwind
colors: {
  custom: {
    50: '#b57bde',
    500: '#9040cf',
    950: '#000000',
  },
}
SCSS
$custom: #9040cf;
$custom-light: #b57bde;
$custom-dark: #000000;
JSON
{
  "hex": "#9040cf",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 273.566,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54629,
    "c": 0.21183,
    "h": 306.1
  },
  "luminance": 0.14101
}

Semantic roles & 50–950 ramp

primary
#9040CF
secondary
#B2D497
accent
#E3458A
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9040CF

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

Preview Lab → · Contrast checker → · Palette generator →

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