#9240D8#9240D8

#9240D8 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.5% C 0.221 H 304.8°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#9240D8
RGBrgb(146, 64, 216)
HSLhsl(272, 66%, 55%)
HSVhsv(272, 70%, 85%)
CMYKcmyk(32.4%, 70.4%, 0%, 15.3%)
CIE-LABlab(45.27, 60.81, -63.98)
CIE-LCHlch(45.27, 88.27, 313.54°)
OKLaboklab(55.52% 0.1263 -0.1819)
OKLCHoklch(55.52% 0.221 304.8)
XYZxyz(26.0793, 14.7358, 66.4228)
Luminance0.1474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9240D8 #86D840
analogous
#4640D8 #9240D8 #D840D2
triadic
#9240D8 #D89240 #40D892
tetradic
#9240D8 #D84640 #86D840 #40D2D8
square
#9240D8 #D84640 #86D840 #40D2D8
split-complementary
#9240D8 #D2D840 #40D846
monochromatic
#531B83 #7325B6 #9240D8 #AF73E2 #CCA6ED

Accessibility & contrast

On white

5.32
#9240D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#9240D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9240D8
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9240D8#FFFFFF#000000##FFFFFF
##9240D81.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DC
Deuteranopia (green-blind)
#006BD5
Tritanopia (blue-blind)
#856488
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9240d8;
/* rgb */ color: rgb(146, 64, 216);
/* oklch */ color: oklch(55.5% 0.221 304.8);
Tailwind
colors: {
  custom: {
    50: '#b77be5',
    500: '#9240d8',
    950: '#000000',
  },
}
SCSS
$custom: #9240d8;
$custom-light: #b77be5;
$custom-dark: #000000;
JSON
{
  "hex": "#9240d8",
  "rgb": {
    "r": 146,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 272.368,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.5552,
    "c": 0.22144,
    "h": 304.8
  },
  "luminance": 0.14736
}

Semantic roles & 50–950 ramp

primary
#9240D8
secondary
#B7DA9A
accent
#E93F8D
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9240D8

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

Preview Lab → · Contrast checker → · Palette generator →

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