#9D7DC8#9D7DC8

#9D7DC8 is a light, moderate violet. Relative luminance 0.260; OKLCH L 64.9% C 0.114 H 303.0°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#9D7DC8
RGBrgb(157, 125, 200)
HSLhsl(266, 41%, 64%)
HSVhsv(266, 38%, 78%)
CMYKcmyk(21.5%, 37.5%, 0%, 21.6%)
CIE-LABlab(58.04, 27.46, -34.45)
CIE-LCHlch(58.04, 44.05, 308.55°)
OKLaboklab(64.92% 0.0621 -0.0956)
OKLCHoklch(64.92% 0.114 303)
XYZxyz(31.6614, 26.0055, 57.9839)
Luminance0.2601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D7DC8 #A8C87D
analogous
#7D82C8 #9D7DC8 #C27DC8
triadic
#9D7DC8 #C89D7D #7DC89D
tetradic
#9D7DC8 #C87D82 #A8C87D #7DC8C2
square
#9D7DC8 #C87D82 #A8C87D #7DC8C2
split-complementary
#9D7DC8 #C8C27D #82C87D
monochromatic
#5F3C8E #7D52B6 #9D7DC8 #BDA8DA #DED3EC

Accessibility & contrast

On white

3.39
#9D7DC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#9D7DC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D7DC8
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D7DC8#FFFFFF#000000##000000
##9D7DC81.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C8BCB
Deuteranopia (green-blind)
#728BC6
Tritanopia (blue-blind)
#968999
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9d7dc8;
/* rgb */ color: rgb(157, 125, 200);
/* oklch */ color: oklch(64.9% 0.114 303.0);
Tailwind
colors: {
  custom: {
    50: '#bba3d9',
    500: '#9d7dc8',
    950: '#000000',
  },
}
SCSS
$custom: #9d7dc8;
$custom-light: #bba3d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9d7dc8",
  "rgb": {
    "r": 157,
    "g": 125,
    "b": 200
  },
  "hsl": {
    "h": 265.6,
    "s": 40.541,
    "l": 63.725
  },
  "oklch": {
    "l": 0.64922,
    "c": 0.11396,
    "h": 303
  },
  "luminance": 0.26005
}

Semantic roles & 50–950 ramp

primary
#9D7DC8
secondary
#D2DEC3
accent
#B4327C
background
#FBFAFD
surface
#F6F3FA
border
#D0CDD3
text
#120F14
muted
#817F83

Preview Lab

Preview with #9D7DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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