#9640E2#9640E2

#9640E2 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.7% C 0.232 H 304.0°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#9640E2
RGBrgb(150, 64, 226)
HSLhsl(272, 74%, 57%)
HSVhsv(272, 72%, 89%)
CMYKcmyk(33.6%, 71.7%, 0%, 11.4%)
CIE-LABlab(46.50, 63.83, -67.66)
CIE-LCHlch(46.50, 93.02, 313.33°)
OKLaboklab(56.73% 0.13 -0.1926)
OKLCHoklch(56.73% 0.232 304)
XYZxyz(28.1354, 15.6419, 73.4737)
Luminance0.1564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9640E2 #8CE240
analogous
#4540E2 #9640E2 #E240DD
triadic
#9640E2 #E29640 #40E296
tetradic
#9640E2 #E24540 #8CE240 #40DDE2
square
#9640E2 #E24540 #8CE240 #40DDE2
split-complementary
#9640E2 #DDE240 #40E245
monochromatic
#581692 #781EC7 #9640E2 #B375EA #D0AAF2

Accessibility & contrast

On white

5.09
#9640E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#9640E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9640E2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9640E2#FFFFFF#000000##FFFFFF
##9640E21.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE7
Deuteranopia (green-blind)
#006EDF
Tritanopia (blue-blind)
#87678D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9640e2;
/* rgb */ color: rgb(150, 64, 226);
/* oklch */ color: oklch(56.7% 0.232 304.0);
Tailwind
colors: {
  custom: {
    50: '#bb7cec',
    500: '#9640e2',
    950: '#000000',
  },
}
SCSS
$custom: #9640e2;
$custom-light: #bb7cec;
$custom-dark: #000000;
JSON
{
  "hex": "#9640e2",
  "rgb": {
    "r": 150,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 271.852,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.5673,
    "c": 0.23234,
    "h": 304
  },
  "luminance": 0.15642
}

Semantic roles & 50–950 ramp

primary
#9640E2
secondary
#BDE09E
accent
#F0388E
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9640E2

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

Preview Lab → · Contrast checker → · Palette generator →

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