#9240D4#9240D4

#9240D4 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.2% C 0.217 H 305.7°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9240D4
RGBrgb(146, 64, 212)
HSLhsl(273, 63%, 54%)
HSVhsv(273, 70%, 83%)
CMYKcmyk(31.1%, 69.8%, 0%, 16.9%)
CIE-LABlab(44.99, 59.90, -62.15)
CIE-LCHlch(44.99, 86.32, 313.94°)
OKLaboklab(55.23% 0.1269 -0.1765)
OKLCHoklch(55.23% 0.217 305.7)
XYZxyz(25.5685, 14.5315, 63.7325)
Luminance0.1453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9240D4 #82D440
analogous
#4840D4 #9240D4 #D440CC
triadic
#9240D4 #D49240 #40D492
tetradic
#9240D4 #D44840 #82D440 #40CCD4
square
#9240D4 #D44840 #82D440 #40CCD4
split-complementary
#9240D4 #CCD440 #40D448
monochromatic
#521C7D #7327AF #9240D4 #AF72DF #CBA4EA

Accessibility & contrast

On white

5.38
#9240D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#9240D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9240D4
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9240D4#FFFFFF#000000##FFFFFF
##9240D41.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D8
Deuteranopia (green-blind)
#006BD1
Tritanopia (blue-blind)
#866286
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9240d4;
/* rgb */ color: rgb(146, 64, 212);
/* oklch */ color: oklch(55.2% 0.217 305.7);
Tailwind
colors: {
  custom: {
    50: '#b77be2',
    500: '#9240d4',
    950: '#000000',
  },
}
SCSS
$custom: #9240d4;
$custom-light: #b77be2;
$custom-dark: #000000;
JSON
{
  "hex": "#9240d4",
  "rgb": {
    "r": 146,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 273.243,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55228,
    "c": 0.2174,
    "h": 305.7
  },
  "luminance": 0.14531
}

Semantic roles & 50–950 ramp

primary
#9240D4
secondary
#B4D798
accent
#E6428B
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #9240D4

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

Preview Lab → · Contrast checker → · Palette generator →

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