#9240BF#9240BF

#9240BF is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.8% C 0.196 H 311.2°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#9240BF
RGBrgb(146, 64, 191)
HSLhsl(279, 50%, 50%)
HSVhsv(279, 66%, 75%)
CMYKcmyk(23.6%, 66.5%, 0%, 25.1%)
CIE-LABlab(43.57, 55.23, -52.29)
CIE-LCHlch(43.57, 76.06, 316.57°)
OKLaboklab(53.76% 0.1292 -0.1476)
OKLCHoklch(53.76% 0.196 311.2)
XYZxyz(23.0897, 13.5399, 50.6772)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9240BF #6DBF40
analogous
#5240BF #9240BF #BF40AD
triadic
#9240BF #BF9240 #40BF92
tetradic
#9240BF #BF5240 #6DBF40 #40ADBF
square
#9240BF #BF5240 #6DBF40 #40ADBF
split-complementary
#9240BF #ADBF40 #40BF52
monochromatic
#4C2163 #6F3191 #9240BF #AC6ECE #C69CDE

Accessibility & contrast

On white

5.66
#9240BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#9240BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9240BF
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9240BF#FFFFFF#000000##FFFFFF
##9240BF1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#3168BC
Tritanopia (blue-blind)
#8C5A7A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9240bf;
/* rgb */ color: rgb(146, 64, 191);
/* oklch */ color: oklch(53.8% 0.196 311.2);
Tailwind
colors: {
  custom: {
    50: '#b67bd3',
    500: '#9240bf',
    950: '#000000',
  },
}
SCSS
$custom: #9240bf;
$custom-light: #b67bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#9240bf",
  "rgb": {
    "r": 146,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 278.74,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.53762,
    "c": 0.19614,
    "h": 311.2
  },
  "luminance": 0.13539
}

Semantic roles & 50–950 ramp

primary
#9240BF
secondary
#A5CA91
accent
#D94E80
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9240BF

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

Preview Lab → · Contrast checker → · Palette generator →

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