#9A7EA2#9A7EA2

#9A7EA2 is a light, moderate purple. Relative luminance 0.244; OKLCH L 63.2% C 0.062 H 318.6°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#9A7EA2
RGBrgb(154, 126, 162)
HSLhsl(287, 16%, 56%)
HSVhsv(287, 22%, 64%)
CMYKcmyk(4.9%, 22.2%, 0%, 36.5%)
CIE-LABlab(56.49, 17.49, -15.15)
CIE-LCHlch(56.49, 23.13, 319.10°)
OKLaboklab(63.17% 0.0465 -0.0409)
OKLCHoklch(63.17% 0.062 318.6)
XYZxyz(27.3079, 24.4008, 37.4467)
Luminance0.2440 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A7EA2 #86A27E
analogous
#887EA2 #9A7EA2 #A27E98
triadic
#9A7EA2 #A29A7E #7EA29A
tetradic
#9A7EA2 #A2887E #86A27E #7E98A2
square
#9A7EA2 #A2887E #86A27E #7E98A2
split-complementary
#9A7EA2 #98A27E #7EA288
monochromatic
#5A4560 #7C5F84 #9A7EA2 #B6A2BC #D2C5D5

Accessibility & contrast

On white

3.57
#9A7EA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#9A7EA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A7EA2
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A7EA2#FFFFFF#000000##000000
##9A7EA21.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A86A4
Deuteranopia (green-blind)
#8088A1
Tritanopia (blue-blind)
#9A828A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9a7ea2;
/* rgb */ color: rgb(154, 126, 162);
/* oklch */ color: oklch(63.2% 0.062 318.6);
Tailwind
colors: {
  custom: {
    50: '#b8a3bd',
    500: '#9a7ea2',
    950: '#000000',
  },
}
SCSS
$custom: #9a7ea2;
$custom-light: #b8a3bd;
$custom-dark: #000000;
JSON
{
  "hex": "#9a7ea2",
  "rgb": {
    "r": 154,
    "g": 126,
    "b": 162
  },
  "hsl": {
    "h": 286.667,
    "s": 16.216,
    "l": 56.471
  },
  "oklch": {
    "l": 0.63166,
    "c": 0.06193,
    "h": 318.6
  },
  "luminance": 0.244
}

Semantic roles & 50–950 ramp

primary
#9A7EA2
secondary
#BAC5B7
accent
#B96F7F
background
#FBFAFB
surface
#F6F3F6
border
#D0CDD0
text
#110F12
muted
#807F81

Preview Lab

Preview with #9A7EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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