#9640F9#9640F9

#9640F9 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 58.5% C 0.255 H 299.4°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#9640F9
RGBrgb(150, 64, 249)
HSLhsl(268, 94%, 61%)
HSVhsv(268, 74%, 98%)
CMYKcmyk(39.8%, 74.3%, 0%, 2.4%)
CIE-LABlab(48.25, 69.11, -77.77)
CIE-LCHlch(48.25, 104.04, 311.62°)
OKLaboklab(58.51% 0.1252 -0.2223)
OKLCHoklch(58.51% 0.255 299.4)
XYZxyz(31.5056, 16.9900, 91.2237)
Luminance0.1699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9640F9 #A3F940
analogous
#4047F9 #9640F9 #F340F9
triadic
#9640F9 #F99640 #40F996
tetradic
#9640F9 #F94047 #A3F940 #40F9F3
square
#9640F9 #F94047 #A3F940 #40F9F3
split-complementary
#9640F9 #F9F340 #47F940
monochromatic
#5906B9 #7608F4 #9640F9 #B77BFB #D7B7FD

Accessibility & contrast

On white

4.77
#9640F9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#9640F9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9640F9
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9640F9#FFFFFF#000000##FFFFFF
##9640F91.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072FE
Deuteranopia (green-blind)
#0071F5
Tritanopia (blue-blind)
#7E719A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9640f9;
/* rgb */ color: rgb(150, 64, 249);
/* oklch */ color: oklch(58.5% 0.255 299.4);
Tailwind
colors: {
  custom: {
    50: '#bd7dfc',
    500: '#9640f9',
    950: '#000000',
  },
}
SCSS
$custom: #9640f9;
$custom-light: #bd7dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#9640f9",
  "rgb": {
    "r": 150,
    "g": 64,
    "b": 249
  },
  "hsl": {
    "h": 267.892,
    "s": 93.909,
    "l": 61.373
  },
  "oklch": {
    "l": 0.58506,
    "c": 0.25513,
    "h": 299.4
  },
  "luminance": 0.1699
}

Semantic roles & 50–950 ramp

primary
#9640F9
secondary
#CDEDA8
accent
#E6007B
background
#FCF8FF
surface
#F8EFFF
border
#D1CAD7
text
#130A18
muted
#827C86

Preview Lab

Preview with #9640F9

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

Preview Lab → · Contrast checker → · Palette generator →

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