#9240CB#9240CB

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

Color values

HEX#9240CB
RGBrgb(146, 64, 203)
HSLhsl(275, 57%, 52%)
HSVhsv(275, 68%, 80%)
CMYKcmyk(28.1%, 68.5%, 0%, 20.4%)
CIE-LABlab(44.36, 57.88, -57.98)
CIE-LCHlch(44.36, 81.92, 314.95°)
OKLaboklab(54.58% 0.1281 -0.1643)
OKLCHoklch(54.58% 0.208 307.9)
XYZxyz(24.4647, 14.0899, 57.9192)
Luminance0.1409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9240CB #79CB40
analogous
#4D40CB #9240CB #CB40BE
triadic
#9240CB #CB9240 #40CB92
tetradic
#9240CB #CB4D40 #79CB40 #40BECB
square
#9240CB #CB4D40 #79CB40 #40BECB
split-complementary
#9240CB #BECB40 #40CB4D
monochromatic
#501F72 #712CA2 #9240CB #AD70D8 #C9A0E5

Accessibility & contrast

On white

5.50
#9240CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#9240CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9240CB
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9240CB#FFFFFF#000000##FFFFFF
##9240CB1.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)
#0066CF
Deuteranopia (green-blind)
#1F6AC8
Tritanopia (blue-blind)
#895F81
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9240cb;
/* rgb */ color: rgb(146, 64, 203);
/* oklch */ color: oklch(54.6% 0.208 307.9);
Tailwind
colors: {
  custom: {
    50: '#b67bdc',
    500: '#9240cb',
    950: '#000000',
  },
}
SCSS
$custom: #9240cb;
$custom-light: #b67bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9240cb",
  "rgb": {
    "r": 146,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 275.396,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54585,
    "c": 0.20828,
    "h": 307.9
  },
  "luminance": 0.1409
}

Semantic roles & 50–950 ramp

primary
#9240CB
secondary
#AED295
accent
#E04786
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9240CB

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

Preview Lab → · Contrast checker → · Palette generator →

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