#9240CE#9240CE

#9240CE is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.8% C 0.211 H 307.2°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#9240CE
RGBrgb(146, 64, 206)
HSLhsl(275, 59%, 53%)
HSVhsv(275, 69%, 81%)
CMYKcmyk(29.1%, 68.9%, 0%, 19.2%)
CIE-LABlab(44.57, 58.55, -59.38)
CIE-LCHlch(44.57, 83.39, 314.60°)
OKLaboklab(54.8% 0.1277 -0.1684)
OKLCHoklch(54.8% 0.211 307.2)
XYZxyz(24.8257, 14.2343, 59.8202)
Luminance0.1423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9240CE #7CCE40
analogous
#4B40CE #9240CE #CE40C3
triadic
#9240CE #CE9240 #40CE92
tetradic
#9240CE #CE4B40 #7CCE40 #40C3CE
square
#9240CE #CE4B40 #7CCE40 #40C3CE
split-complementary
#9240CE #C3CE40 #40CE4B
monochromatic
#511E75 #722BA6 #9240CE #AE71DA #CAA1E7

Accessibility & contrast

On white

5.46
#9240CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#9240CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9240CE
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9240CE#FFFFFF#000000##FFFFFF
##9240CE1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D2
Deuteranopia (green-blind)
#186ACB
Tritanopia (blue-blind)
#886082
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9240ce;
/* rgb */ color: rgb(146, 64, 206);
/* oklch */ color: oklch(54.8% 0.211 307.2);
Tailwind
colors: {
  custom: {
    50: '#b77bde',
    500: '#9240ce',
    950: '#000000',
  },
}
SCSS
$custom: #9240ce;
$custom-light: #b77bde;
$custom-dark: #000000;
JSON
{
  "hex": "#9240ce",
  "rgb": {
    "r": 146,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 274.648,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54797,
    "c": 0.21132,
    "h": 307.2
  },
  "luminance": 0.14234
}

Semantic roles & 50–950 ramp

primary
#9240CE
secondary
#B0D496
accent
#E24588
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9240CE

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

Preview Lab → · Contrast checker → · Palette generator →

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