#9240D6#9240D6

#9240D6 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.4% C 0.219 H 305.2°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#9240D6
RGBrgb(146, 64, 214)
HSLhsl(273, 65%, 55%)
HSVhsv(273, 70%, 84%)
CMYKcmyk(31.8%, 70.1%, 0%, 16.1%)
CIE-LABlab(45.13, 60.35, -63.07)
CIE-LCHlch(45.13, 87.30, 313.74°)
OKLaboklab(55.37% 0.1266 -0.1792)
OKLCHoklch(55.37% 0.219 305.2)
XYZxyz(25.8224, 14.6330, 65.0694)
Luminance0.1463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9240D6 #84D640
analogous
#4740D6 #9240D6 #D640CF
triadic
#9240D6 #D69240 #40D692
tetradic
#9240D6 #D64740 #84D640 #40CFD6
square
#9240D6 #D64740 #84D640 #40CFD6
split-complementary
#9240D6 #CFD640 #40D647
monochromatic
#521B80 #7326B2 #9240D6 #AF72E1 #CCA5EC

Accessibility & contrast

On white

5.35
#9240D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#9240D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9240D6
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9240D6#FFFFFF#000000##FFFFFF
##9240D61.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DA
Deuteranopia (green-blind)
#006BD3
Tritanopia (blue-blind)
#866387
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9240d6;
/* rgb */ color: rgb(146, 64, 214);
/* oklch */ color: oklch(55.4% 0.219 305.2);
Tailwind
colors: {
  custom: {
    50: '#b77be4',
    500: '#9240d6',
    950: '#000000',
  },
}
SCSS
$custom: #9240d6;
$custom-light: #b77be4;
$custom-dark: #000000;
JSON
{
  "hex": "#9240d6",
  "rgb": {
    "r": 146,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 272.8,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.55373,
    "c": 0.21942,
    "h": 305.2
  },
  "luminance": 0.14633
}

Semantic roles & 50–950 ramp

primary
#9240D6
secondary
#B6D999
accent
#E8408C
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9240D6

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

Preview Lab → · Contrast checker → · Palette generator →

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