#9645D9#9645D9

#9645D9 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.6% C 0.217 H 305.5°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#9645D9
RGBrgb(150, 69, 217)
HSLhsl(273, 66%, 56%)
HSVhsv(273, 68%, 85%)
CMYKcmyk(30.9%, 68.2%, 0%, 14.9%)
CIE-LABlab(46.65, 59.58, -62.30)
CIE-LCHlch(46.65, 86.21, 313.72°)
OKLaboklab(56.63% 0.1264 -0.1769)
OKLCHoklch(56.63% 0.217 305.5)
XYZxyz(27.2274, 15.7502, 67.2379)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9645D9 #88D945
analogous
#4C45D9 #9645D9 #D945D2
triadic
#9645D9 #D99645 #45D996
tetradic
#9645D9 #D94C45 #88D945 #45D2D9
square
#9645D9 #D94C45 #88D945 #45D2D9
split-complementary
#9645D9 #D2D945 #45D94C
monochromatic
#571C88 #7726BB #9645D9 #B378E3 #CFABEE

Accessibility & contrast

On white

5.06
#9645D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#9645D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9645D9
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9645D9#FFFFFF#000000##FFFFFF
##9645D91.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDD
Deuteranopia (green-blind)
#106FD6
Tritanopia (blue-blind)
#8A668A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9645d9;
/* rgb */ color: rgb(150, 69, 217);
/* oklch */ color: oklch(56.6% 0.217 305.5);
Tailwind
colors: {
  custom: {
    50: '#ba7fe6',
    500: '#9645d9',
    950: '#000000',
  },
}
SCSS
$custom: #9645d9;
$custom-light: #ba7fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#9645d9",
  "rgb": {
    "r": 150,
    "g": 69,
    "b": 217
  },
  "hsl": {
    "h": 272.838,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56631,
    "c": 0.21739,
    "h": 305.5
  },
  "luminance": 0.1575
}

Semantic roles & 50–950 ramp

primary
#9645D9
secondary
#BADB9E
accent
#E93F8C
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9645D9

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

Preview Lab → · Contrast checker → · Palette generator →

#9645D9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva