#9240C8#9240C8

#9240C8 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.4% C 0.205 H 308.7°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#9240C8
RGBrgb(146, 64, 200)
HSLhsl(276, 55%, 52%)
HSVhsv(276, 68%, 78%)
CMYKcmyk(27%, 68%, 0%, 21.6%)
CIE-LABlab(44.16, 57.21, -56.57)
CIE-LCHlch(44.16, 80.46, 315.32°)
OKLaboklab(54.38% 0.1284 -0.1601)
OKLCHoklch(54.38% 0.205 308.7)
XYZxyz(24.1107, 13.9483, 56.0545)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9240C8 #76C840
analogous
#4E40C8 #9240C8 #C840BA
triadic
#9240C8 #C89240 #40C892
tetradic
#9240C8 #C84E40 #76C840 #40BAC8
square
#9240C8 #C84E40 #76C840 #40BAC8
split-complementary
#9240C8 #BAC840 #40C84E
monochromatic
#4F206E #712D9D #9240C8 #AD70D6 #C89FE3

Accessibility & contrast

On white

5.54
#9240C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#9240C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9240C8
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9240C8#FFFFFF#000000##FFFFFF
##9240C81.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CC
Deuteranopia (green-blind)
#2469C5
Tritanopia (blue-blind)
#8A5D7F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9240c8;
/* rgb */ color: rgb(146, 64, 200);
/* oklch */ color: oklch(54.4% 0.205 308.7);
Tailwind
colors: {
  custom: {
    50: '#b67bd9',
    500: '#9240c8',
    950: '#000000',
  },
}
SCSS
$custom: #9240c8;
$custom-light: #b67bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9240c8",
  "rgb": {
    "r": 146,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 276.176,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.54376,
    "c": 0.20524,
    "h": 308.7
  },
  "luminance": 0.13948
}

Semantic roles & 50–950 ramp

primary
#9240C8
secondary
#ACD094
accent
#DF4985
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9240C8

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

Preview Lab → · Contrast checker → · Palette generator →

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