#9640B2#9640B2

#9640B2 is a mid, vivid purple. Relative luminance 0.134; OKLCH L 53.4% C 0.185 H 316.9°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#9640B2
RGBrgb(150, 64, 178)
HSLhsl(285, 47%, 47%)
HSVhsv(285, 64%, 70%)
CMYKcmyk(15.7%, 64%, 0%, 30.2%)
CIE-LABlab(43.31, 53.41, -45.05)
CIE-LCHlch(43.31, 69.87, 319.85°)
OKLaboklab(53.43% 0.1348 -0.1262)
OKLCHoklch(53.43% 0.185 316.9)
XYZxyz(22.4458, 13.3660, 43.5084)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9640B2 #5CB240
analogous
#5D40B2 #9640B2 #B24095
triadic
#9640B2 #B29640 #40B296
tetradic
#9640B2 #B25D40 #5CB240 #4095B2
square
#9640B2 #B25D40 #5CB240 #4095B2
split-complementary
#9640B2 #95B240 #40B25D
monochromatic
#4A2058 #703085 #9640B2 #B067C8 #C894D8

Accessibility & contrast

On white

5.72
#9640B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#9640B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9640B2
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9640B2#FFFFFF#000000##FFFFFF
##9640B21.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1861B5
Deuteranopia (green-blind)
#4269AF
Tritanopia (blue-blind)
#955473
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9640b2;
/* rgb */ color: rgb(150, 64, 178);
/* oklch */ color: oklch(53.4% 0.185 316.9);
Tailwind
colors: {
  custom: {
    50: '#b87bc9',
    500: '#9640b2',
    950: '#000000',
  },
}
SCSS
$custom: #9640b2;
$custom-light: #b87bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#9640b2",
  "rgb": {
    "r": 150,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 285.263,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.53434,
    "c": 0.1847,
    "h": 316.9
  },
  "luminance": 0.13365
}

Semantic roles & 50–950 ramp

primary
#9640B2
secondary
#98C48A
accent
#D75172
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9640B2

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

Preview Lab → · Contrast checker → · Palette generator →

#9640B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva