#7E788E#7E788E

#7E788E is a mid, muted violet. Relative luminance 0.198; OKLCH L 58.6% C 0.034 H 297.8°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7E788E
RGBrgb(126, 120, 142)
HSLhsl(256, 9%, 51%)
HSVhsv(256, 15%, 56%)
CMYKcmyk(11.3%, 15.5%, 0%, 44.3%)
CIE-LABlab(51.63, 6.86, -11.10)
CIE-LCHlch(51.63, 13.05, 301.74°)
OKLaboklab(58.56% 0.0158 -0.03)
OKLCHoklch(58.56% 0.034 297.8)
XYZxyz(20.2022, 19.8215, 28.3476)
Luminance0.1982 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E788E #888E78
analogous
#787D8E #7E788E #89788E
triadic
#7E788E #8E7E78 #788E7E
tetradic
#7E788E #8E787D #888E78 #788E89
square
#7E788E #8E787D #888E78 #788E89
split-complementary
#7E788E #8E8978 #7D8E78
monochromatic
#43404C #605B6D #7E788E #9E99AA #BEBBC6

Accessibility & contrast

On white

4.23
#7E788E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#7E788E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E788E
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E788E#FFFFFF#000000##000000
##7E788E1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#747B8F
Deuteranopia (green-blind)
#757B8D
Tritanopia (blue-blind)
#7B7B7F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e788e;
/* rgb */ color: rgb(126, 120, 142);
/* oklch */ color: oklch(58.6% 0.034 297.8);
Tailwind
colors: {
  custom: {
    50: '#a39faf',
    500: '#7e788e',
    950: '#000000',
  },
}
SCSS
$custom: #7e788e;
$custom-light: #a39faf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e788e",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 142
  },
  "hsl": {
    "h": 256.364,
    "s": 8.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.58564,
    "c": 0.0339,
    "h": 297.8
  },
  "luminance": 0.19822
}

Semantic roles & 50–950 ramp

primary
#7E788E
secondary
#B3B6AC
accent
#B276A2
background
#FAF9FA
surface
#F3F2F4
border
#CDCCCE
text
#0F0E10
muted
#7F7E7F

Preview Lab

Preview with #7E788E

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

Preview Lab → · Contrast checker → · Palette generator →

#7E788E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva