#9240DD#9240DD

#9240DD is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.9% C 0.227 H 303.6°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#9240DD
RGBrgb(146, 64, 221)
HSLhsl(271, 70%, 56%)
HSVhsv(271, 71%, 87%)
CMYKcmyk(33.9%, 71%, 0%, 13.3%)
CIE-LABlab(45.63, 61.95, -66.25)
CIE-LCHlch(45.63, 90.71, 313.08°)
OKLaboklab(55.89% 0.1255 -0.1886)
OKLCHoklch(55.89% 0.227 303.6)
XYZxyz(26.7356, 14.9983, 69.8791)
Luminance0.1500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9240DD #8BDD40
analogous
#4340DD #9240DD #DD40D9
triadic
#9240DD #DD9240 #40DD92
tetradic
#9240DD #DD4340 #8BDD40 #40D9DD
square
#9240DD #DD4340 #8BDD40 #40D9DD
split-complementary
#9240DD #D9DD40 #40DD43
monochromatic
#54198A #7322BE #9240DD #B074E6 #CDA8EF

Accessibility & contrast

On white

5.25
#9240DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#9240DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9240DD
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9240DD#FFFFFF#000000##FFFFFF
##9240DD1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE2
Deuteranopia (green-blind)
#006CDA
Tritanopia (blue-blind)
#83668B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9240dd;
/* rgb */ color: rgb(146, 64, 221);
/* oklch */ color: oklch(55.9% 0.227 303.6);
Tailwind
colors: {
  custom: {
    50: '#b87ce9',
    500: '#9240dd',
    950: '#000000',
  },
}
SCSS
$custom: #9240dd;
$custom-light: #b87ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#9240dd",
  "rgb": {
    "r": 146,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 271.338,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5589,
    "c": 0.2265,
    "h": 303.6
  },
  "luminance": 0.14998
}

Semantic roles & 50–950 ramp

primary
#9240DD
secondary
#BBDD9C
accent
#ED3B90
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9240DD

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

Preview Lab → · Contrast checker → · Palette generator →

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