#9240AF#9240AF

#9240AF is a mid, vivid purple. Relative luminance 0.129; OKLCH L 52.7% C 0.180 H 316.2°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#9240AF
RGBrgb(146, 64, 175)
HSLhsl(284, 46%, 47%)
HSVhsv(284, 63%, 69%)
CMYKcmyk(16.6%, 63.4%, 0%, 31.4%)
CIE-LABlab(42.57, 51.83, -44.49)
CIE-LCHlch(42.57, 68.30, 319.35°)
OKLaboklab(52.73% 0.1299 -0.1247)
OKLCHoklch(52.73% 0.18 316.2)
XYZxyz(21.4241, 12.8737, 41.9055)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9240AF #5DAF40
analogous
#5A40AF #9240AF #AF4095
triadic
#9240AF #AF9240 #40AF92
tetradic
#9240AF #AF5A40 #5DAF40 #4095AF
square
#9240AF #AF5A40 #5DAF40 #4095AF
split-complementary
#9240AF #95AF40 #40AF5A
monochromatic
#471F55 #6D3082 #9240AF #AD65C7 #C592D7

Accessibility & contrast

On white

5.87
#9240AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#9240AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9240AF
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9240AF#FFFFFF#000000##FFFFFF
##9240AF1.005.873.575.87
#FFFFFF5.871.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1960B2
Deuteranopia (green-blind)
#4067AC
Tritanopia (blue-blind)
#905472
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9240af;
/* rgb */ color: rgb(146, 64, 175);
/* oklch */ color: oklch(52.7% 0.180 316.2);
Tailwind
colors: {
  custom: {
    50: '#b57ac7',
    500: '#9240af',
    950: '#000000',
  },
}
SCSS
$custom: #9240af;
$custom-light: #b57ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#9240af",
  "rgb": {
    "r": 146,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 284.324,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.52727,
    "c": 0.18005,
    "h": 316.2
  },
  "luminance": 0.12873
}

Semantic roles & 50–950 ramp

primary
#9240AF
secondary
#97C388
accent
#D65274
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #9240AF

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

Preview Lab → · Contrast checker → · Palette generator →

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