#9A7AB3#9A7AB3

#9A7AB3 is a light, moderate violet. Relative luminance 0.240; OKLCH L 63.1% C 0.091 H 309.6°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#9A7AB3
RGBrgb(154, 122, 179)
HSLhsl(274, 27%, 59%)
HSVhsv(274, 32%, 70%)
CMYKcmyk(14%, 31.8%, 0%, 29.8%)
CIE-LABlab(56.13, 23.44, -25.47)
CIE-LCHlch(56.13, 34.61, 312.62°)
OKLaboklab(63.11% 0.0578 -0.0699)
OKLCHoklch(63.11% 0.091 309.6)
XYZxyz(28.4212, 24.0441, 45.7828)
Luminance0.2404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A7AB3 #93B37A
analogous
#7E7AB3 #9A7AB3 #B37AB0
triadic
#9A7AB3 #B39A7A #7AB39A
tetradic
#9A7AB3 #B37E7A #93B37A #7AB0B3
square
#9A7AB3 #B37E7A #93B37A #7AB0B3
split-complementary
#9A7AB3 #B0B37A #7AB37E
monochromatic
#5C4172 #7C5799 #9A7AB3 #B8A1C9 #D5C8E0

Accessibility & contrast

On white

3.62
#9A7AB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#9A7AB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A7AB3
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A7AB3#FFFFFF#000000##000000
##9A7AB31.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7085B5
Deuteranopia (green-blind)
#7787B1
Tritanopia (blue-blind)
#97828F
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9a7ab3;
/* rgb */ color: rgb(154, 122, 179);
/* oklch */ color: oklch(63.1% 0.091 309.6);
Tailwind
colors: {
  custom: {
    50: '#b8a0ca',
    500: '#9a7ab3',
    950: '#000000',
  },
}
SCSS
$custom: #9a7ab3;
$custom-light: #b8a0ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9a7ab3",
  "rgb": {
    "r": 154,
    "g": 122,
    "b": 179
  },
  "hsl": {
    "h": 273.684,
    "s": 27.273,
    "l": 59.02
  },
  "oklch": {
    "l": 0.63106,
    "c": 0.09072,
    "h": 309.6
  },
  "luminance": 0.24044
}

Semantic roles & 50–950 ramp

primary
#9A7AB3
secondary
#C3D0B9
accent
#C4648E
background
#FBF9FC
surface
#F6F2F8
border
#D0CCD1
text
#110F13
muted
#807E82

Preview Lab

Preview with #9A7AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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