#9240D2#9240D2

#9240D2 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.1% C 0.215 H 306.2°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#9240D2
RGBrgb(146, 64, 210)
HSLhsl(274, 62%, 54%)
HSVhsv(274, 70%, 82%)
CMYKcmyk(30.5%, 69.5%, 0%, 17.6%)
CIE-LABlab(44.85, 59.45, -61.23)
CIE-LCHlch(44.85, 85.34, 314.15°)
OKLaboklab(55.08% 0.1272 -0.1738)
OKLCHoklch(55.08% 0.215 306.2)
XYZxyz(25.3178, 14.4312, 62.4120)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9240D2 #80D240
analogous
#4940D2 #9240D2 #D240C9
triadic
#9240D2 #D29240 #40D292
tetradic
#9240D2 #D24940 #80D240 #40C9D2
square
#9240D2 #D24940 #80D240 #40C9D2
split-complementary
#9240D2 #C9D240 #40D249
monochromatic
#521D7B #7329AC #9240D2 #AE72DE #CBA3E9

Accessibility & contrast

On white

5.40
#9240D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#9240D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9240D2
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9240D2#FFFFFF#000000##FFFFFF
##9240D21.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#096ACF
Tritanopia (blue-blind)
#876185
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9240d2;
/* rgb */ color: rgb(146, 64, 210);
/* oklch */ color: oklch(55.1% 0.215 306.2);
Tailwind
colors: {
  custom: {
    50: '#b77be1',
    500: '#9240d2',
    950: '#000000',
  },
}
SCSS
$custom: #9240d2;
$custom-light: #b77be1;
$custom-dark: #000000;
JSON
{
  "hex": "#9240d2",
  "rgb": {
    "r": 146,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 273.699,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.55083,
    "c": 0.21537,
    "h": 306.2
  },
  "luminance": 0.14431
}

Semantic roles & 50–950 ramp

primary
#9240D2
secondary
#B3D698
accent
#E5438A
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9240D2

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

Preview Lab → · Contrast checker → · Palette generator →

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