#9A7FC5#9A7FC5

#9A7FC5 is a light, moderate violet. Relative luminance 0.261; OKLCH L 64.9% C 0.106 H 301.3°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#9A7FC5
RGBrgb(154, 127, 197)
HSLhsl(263, 38%, 64%)
HSVhsv(263, 36%, 77%)
CMYKcmyk(21.8%, 35.5%, 0%, 22.7%)
CIE-LABlab(58.11, 24.69, -32.66)
CIE-LCHlch(58.11, 40.95, 307.09°)
OKLaboklab(64.87% 0.0549 -0.0905)
OKLCHoklch(64.87% 0.106 301.3)
XYZxyz(30.9917, 26.0799, 56.2137)
Luminance0.2608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A7FC5 #AAC57F
analogous
#7F87C5 #9A7FC5 #BD7FC5
triadic
#9A7FC5 #C59A7F #7FC59A
tetradic
#9A7FC5 #C57F87 #AAC57F #7FC5BD
square
#9A7FC5 #C57F87 #AAC57F #7FC5BD
split-complementary
#9A7FC5 #C5BD7F #87C57F
monochromatic
#5C3F8B #7955B2 #9A7FC5 #BBA9D8 #DCD3EB

Accessibility & contrast

On white

3.38
#9A7FC5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#9A7FC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A7FC5
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A7FC5#FFFFFF#000000##000000
##9A7FC51.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F8BC8
Deuteranopia (green-blind)
#748BC3
Tritanopia (blue-blind)
#938A99
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9a7fc5;
/* rgb */ color: rgb(154, 127, 197);
/* oklch */ color: oklch(64.9% 0.106 301.3);
Tailwind
colors: {
  custom: {
    50: '#b9a4d7',
    500: '#9a7fc5',
    950: '#000000',
  },
}
SCSS
$custom: #9a7fc5;
$custom-light: #b9a4d7;
$custom-dark: #000000;
JSON
{
  "hex": "#9a7fc5",
  "rgb": {
    "r": 154,
    "g": 127,
    "b": 197
  },
  "hsl": {
    "h": 263.143,
    "s": 37.634,
    "l": 63.529
  },
  "oklch": {
    "l": 0.64866,
    "c": 0.10586,
    "h": 301.3
  },
  "luminance": 0.2608
}

Semantic roles & 50–950 ramp

primary
#9A7FC5
secondary
#D3DCC3
accent
#B13581
background
#FBFAFD
surface
#F6F4FA
border
#D0CED3
text
#110F14
muted
#807F83

Preview Lab

Preview with #9A7FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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