#9240D7#9240D7

#9240D7 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.4% C 0.220 H 305.0°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#9240D7
RGBrgb(146, 64, 215)
HSLhsl(273, 65%, 55%)
HSVhsv(273, 70%, 84%)
CMYKcmyk(32.1%, 70.2%, 0%, 15.7%)
CIE-LABlab(45.20, 60.58, -63.53)
CIE-LCHlch(45.20, 87.78, 313.64°)
OKLaboklab(55.45% 0.1264 -0.1806)
OKLCHoklch(55.45% 0.22 305)
XYZxyz(25.9504, 14.6842, 65.7440)
Luminance0.1468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9240D7 #85D740
analogous
#4740D7 #9240D7 #D740D0
triadic
#9240D7 #D79240 #40D792
tetradic
#9240D7 #D74740 #85D740 #40D0D7
square
#9240D7 #D74740 #85D740 #40D0D7
split-complementary
#9240D7 #D0D740 #40D747
monochromatic
#531B81 #7326B4 #9240D7 #AF73E2 #CCA5EC

Accessibility & contrast

On white

5.33
#9240D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#9240D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9240D7
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9240D7#FFFFFF#000000##FFFFFF
##9240D71.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DB
Deuteranopia (green-blind)
#006BD4
Tritanopia (blue-blind)
#856387
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9240d7;
/* rgb */ color: rgb(146, 64, 215);
/* oklch */ color: oklch(55.4% 0.220 305.0);
Tailwind
colors: {
  custom: {
    50: '#b77be4',
    500: '#9240d7',
    950: '#000000',
  },
}
SCSS
$custom: #9240d7;
$custom-light: #b77be4;
$custom-dark: #000000;
JSON
{
  "hex": "#9240d7",
  "rgb": {
    "r": 146,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 272.583,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.55446,
    "c": 0.22044,
    "h": 305
  },
  "luminance": 0.14684
}

Semantic roles & 50–950 ramp

primary
#9240D7
secondary
#B7D99A
accent
#E83F8D
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9240D7

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

Preview Lab → · Contrast checker → · Palette generator →

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