#9240CD#9240CD

#9240CD is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.7% C 0.210 H 307.4°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#9240CD
RGBrgb(146, 64, 205)
HSLhsl(275, 59%, 53%)
HSVhsv(275, 69%, 80%)
CMYKcmyk(28.8%, 68.8%, 0%, 19.6%)
CIE-LABlab(44.50, 58.32, -58.91)
CIE-LCHlch(44.50, 82.90, 314.71°)
OKLaboklab(54.73% 0.1278 -0.167)
OKLCHoklch(54.73% 0.21 307.4)
XYZxyz(24.7046, 14.1859, 59.1825)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9240CD #7BCD40
analogous
#4C40CD #9240CD #CD40C1
triadic
#9240CD #CD9240 #40CD92
tetradic
#9240CD #CD4C40 #7BCD40 #40C1CD
square
#9240CD #CD4C40 #7BCD40 #40C1CD
split-complementary
#9240CD #C1CD40 #40CD4C
monochromatic
#501E74 #722BA5 #9240CD #AE71DA #C9A1E6

Accessibility & contrast

On white

5.47
#9240CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#9240CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9240CD
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9240CD#FFFFFF#000000##FFFFFF
##9240CD1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#1A6ACA
Tritanopia (blue-blind)
#885F82
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9240cd;
/* rgb */ color: rgb(146, 64, 205);
/* oklch */ color: oklch(54.7% 0.210 307.4);
Tailwind
colors: {
  custom: {
    50: '#b77bdd',
    500: '#9240cd',
    950: '#000000',
  },
}
SCSS
$custom: #9240cd;
$custom-light: #b77bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9240cd",
  "rgb": {
    "r": 146,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 274.894,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54726,
    "c": 0.2103,
    "h": 307.4
  },
  "luminance": 0.14186
}

Semantic roles & 50–950 ramp

primary
#9240CD
secondary
#AFD396
accent
#E24687
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9240CD

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

Preview Lab → · Contrast checker → · Palette generator →

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