#9240CF#9240CF

#9240CF is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.9% C 0.212 H 306.9°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9240CF
RGBrgb(146, 64, 207)
HSLhsl(274, 60%, 53%)
HSVhsv(274, 69%, 81%)
CMYKcmyk(29.5%, 69.1%, 0%, 18.8%)
CIE-LABlab(44.64, 58.77, -59.84)
CIE-LCHlch(44.64, 83.88, 314.48°)
OKLaboklab(54.87% 0.1276 -0.1697)
OKLCHoklch(54.87% 0.212 306.9)
XYZxyz(24.9475, 14.2831, 60.4620)
Luminance0.1428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9240CF #7DCF40
analogous
#4A40CF #9240CF #CF40C4
triadic
#9240CF #CF9240 #40CF92
tetradic
#9240CF #CF4A40 #7DCF40 #40C4CF
square
#9240CF #CF4A40 #7DCF40 #40C4CF
split-complementary
#9240CF #C4CF40 #40CF4A
monochromatic
#511E77 #722AA8 #9240CF #AE71DB #CAA2E8

Accessibility & contrast

On white

5.45
#9240CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#9240CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9240CF
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9240CF#FFFFFF#000000##FFFFFF
##9240CF1.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#156ACC
Tritanopia (blue-blind)
#886083
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9240cf;
/* rgb */ color: rgb(146, 64, 207);
/* oklch */ color: oklch(54.9% 0.212 306.9);
Tailwind
colors: {
  custom: {
    50: '#b77bde',
    500: '#9240cf',
    950: '#000000',
  },
}
SCSS
$custom: #9240cf;
$custom-light: #b77bde;
$custom-dark: #000000;
JSON
{
  "hex": "#9240cf",
  "rgb": {
    "r": 146,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 274.406,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54868,
    "c": 0.21233,
    "h": 306.9
  },
  "luminance": 0.14283
}

Semantic roles & 50–950 ramp

primary
#9240CF
secondary
#B1D497
accent
#E34588
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9240CF

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

Preview Lab → · Contrast checker → · Palette generator →

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