#9F40BA#9F40BA

#9F40BA is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.1% C 0.196 H 318.0°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#9F40BA
RGBrgb(159, 64, 186)
HSLhsl(287, 49%, 49%)
HSVhsv(287, 66%, 73%)
CMYKcmyk(14.5%, 65.6%, 0%, 27.1%)
CIE-LABlab(45.06, 57.15, -46.88)
CIE-LCHlch(45.06, 73.91, 320.64°)
OKLaboklab(55.11% 0.1458 -0.1313)
OKLCHoklch(55.11% 0.196 318)
XYZxyz(24.9932, 14.5839, 47.9433)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F40BA #5BBA40
analogous
#6240BA #9F40BA #BA4098
triadic
#9F40BA #BA9F40 #40BA9F
tetradic
#9F40BA #BA6240 #5BBA40 #4098BA
square
#9F40BA #BA6240 #5BBA40 #4098BA
split-complementary
#9F40BA #98BA40 #40BA62
monochromatic
#51215F #78308C #9F40BA #B76BCC #CD99DC

Accessibility & contrast

On white

5.36
#9F40BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#9F40BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F40BA
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F40BA#FFFFFF#000000##FFFFFF
##9F40BA1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1264BE
Deuteranopia (green-blind)
#456EB7
Tritanopia (blue-blind)
#9E5678
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9f40ba;
/* rgb */ color: rgb(159, 64, 186);
/* oklch */ color: oklch(55.1% 0.196 318.0);
Tailwind
colors: {
  custom: {
    50: '#bf7ccf',
    500: '#9f40ba',
    950: '#000000',
  },
}
SCSS
$custom: #9f40ba;
$custom-light: #bf7ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#9f40ba",
  "rgb": {
    "r": 159,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 286.721,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.55113,
    "c": 0.19618,
    "h": 318
  },
  "luminance": 0.14583
}

Semantic roles & 50–950 ramp

primary
#9F40BA
secondary
#9BC88E
accent
#D84F6E
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #9F40BA

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

Preview Lab → · Contrast checker → · Palette generator →

#9F40BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva