#9C7EC0#9C7EC0

#9C7EC0 is a light, moderate violet. Relative luminance 0.258; OKLCH L 64.6% C 0.101 H 304.6°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#9C7EC0
RGBrgb(156, 126, 192)
HSLhsl(267, 34%, 62%)
HSVhsv(267, 34%, 75%)
CMYKcmyk(18.7%, 34.4%, 0%, 24.7%)
CIE-LABlab(57.84, 24.71, -30.23)
CIE-LCHlch(57.84, 39.05, 309.27°)
OKLaboklab(64.63% 0.0576 -0.0835)
OKLCHoklch(64.63% 0.101 304.6)
XYZxyz(30.6837, 25.7955, 53.2215)
Luminance0.2580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C7EC0 #A2C07E
analogous
#7E81C0 #9C7EC0 #BD7EC0
triadic
#9C7EC0 #C09C7E #7EC09C
tetradic
#9C7EC0 #C07E81 #A2C07E #7EC0BD
square
#9C7EC0 #C07E81 #A2C07E #7EC0BD
split-complementary
#9C7EC0 #C0BD7E #81C07E
monochromatic
#5F4083 #7C55AC #9C7EC0 #BCA7D4 #DBD0E8

Accessibility & contrast

On white

3.41
#9C7EC0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#9C7EC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C7EC0
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C7EC0#FFFFFF#000000##000000
##9C7EC01.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#708AC3
Deuteranopia (green-blind)
#768BBE
Tritanopia (blue-blind)
#968896
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9c7ec0;
/* rgb */ color: rgb(156, 126, 192);
/* oklch */ color: oklch(64.6% 0.101 304.6);
Tailwind
colors: {
  custom: {
    50: '#baa3d3',
    500: '#9c7ec0',
    950: '#000000',
  },
}
SCSS
$custom: #9c7ec0;
$custom-light: #baa3d3;
$custom-dark: #000000;
JSON
{
  "hex": "#9c7ec0",
  "rgb": {
    "r": 156,
    "g": 126,
    "b": 192
  },
  "hsl": {
    "h": 267.273,
    "s": 34.375,
    "l": 62.353
  },
  "oklch": {
    "l": 0.64634,
    "c": 0.1014,
    "h": 304.6
  },
  "luminance": 0.25795
}

Semantic roles & 50–950 ramp

primary
#9C7EC0
secondary
#CED9C1
accent
#AD3878
background
#FBFAFC
surface
#F6F4F9
border
#D0CED2
text
#120F14
muted
#817F82

Preview Lab

Preview with #9C7EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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