#9240CC#9240CC

#9240CC is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.7% C 0.209 H 307.7°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#9240CC
RGBrgb(146, 64, 204)
HSLhsl(275, 58%, 53%)
HSVhsv(275, 69%, 80%)
CMYKcmyk(28.4%, 68.6%, 0%, 20%)
CIE-LABlab(44.43, 58.10, -58.45)
CIE-LCHlch(44.43, 82.41, 314.83°)
OKLaboklab(54.66% 0.1279 -0.1656)
OKLCHoklch(54.66% 0.209 307.7)
XYZxyz(24.5843, 14.1378, 58.5488)
Luminance0.1414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9240CC #7ACC40
analogous
#4C40CC #9240CC #CC40C0
triadic
#9240CC #CC9240 #40CC92
tetradic
#9240CC #CC4C40 #7ACC40 #40C0CC
square
#9240CC #CC4C40 #7ACC40 #40C0CC
split-complementary
#9240CC #C0CC40 #40CC4C
monochromatic
#501F73 #722CA3 #9240CC #AE70D9 #C9A1E6

Accessibility & contrast

On white

5.49
#9240CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#9240CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9240CC
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9240CC#FFFFFF#000000##FFFFFF
##9240CC1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D0
Deuteranopia (green-blind)
#1D6AC9
Tritanopia (blue-blind)
#895F81
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9240cc;
/* rgb */ color: rgb(146, 64, 204);
/* oklch */ color: oklch(54.7% 0.209 307.7);
Tailwind
colors: {
  custom: {
    50: '#b77bdc',
    500: '#9240cc',
    950: '#000000',
  },
}
SCSS
$custom: #9240cc;
$custom-light: #b77bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9240cc",
  "rgb": {
    "r": 146,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 275.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54656,
    "c": 0.20929,
    "h": 307.7
  },
  "luminance": 0.14137
}

Semantic roles & 50–950 ramp

primary
#9240CC
secondary
#AFD295
accent
#E14787
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9240CC

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

Preview Lab → · Contrast checker → · Palette generator →

#9240CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva