#7E798E#7E798E

#7E798E is a mid, muted violet. Relative luminance 0.201; OKLCH L 58.8% C 0.032 H 296.3°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7E798E
RGBrgb(126, 121, 142)
HSLhsl(254, 9%, 52%)
HSVhsv(254, 15%, 56%)
CMYKcmyk(11.3%, 14.8%, 0%, 44.3%)
CIE-LABlab(51.91, 6.28, -10.68)
CIE-LCHlch(51.91, 12.39, 300.44°)
OKLaboklab(58.78% 0.0143 -0.0289)
OKLCHoklch(58.78% 0.032 296.3)
XYZxyz(20.3231, 20.0633, 28.3879)
Luminance0.2006 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E798E #898E79
analogous
#797F8E #7E798E #89798E
triadic
#7E798E #8E7E79 #798E7E
tetradic
#7E798E #8E797F #898E79 #798E89
square
#7E798E #8E797F #898E79 #798E89
split-complementary
#7E798E #8E8979 #7F8E79
monochromatic
#43404C #605C6D #7E798E #9E9AAA #BEBBC6

Accessibility & contrast

On white

4.19
#7E798E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#7E798E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E798E
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E798E#FFFFFF#000000##000000
##7E798E1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#757C8F
Deuteranopia (green-blind)
#767C8D
Tritanopia (blue-blind)
#7B7C80
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7e798e;
/* rgb */ color: rgb(126, 121, 142);
/* oklch */ color: oklch(58.8% 0.032 296.3);
Tailwind
colors: {
  custom: {
    50: '#a39faf',
    500: '#7e798e',
    950: '#000000',
  },
}
SCSS
$custom: #7e798e;
$custom-light: #a39faf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e798e",
  "rgb": {
    "r": 126,
    "g": 121,
    "b": 142
  },
  "hsl": {
    "h": 254.286,
    "s": 8.502,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58777,
    "c": 0.03219,
    "h": 296.3
  },
  "luminance": 0.20063
}

Semantic roles & 50–950 ramp

primary
#7E798E
secondary
#B4B6AD
accent
#B276A3
background
#FAF9FA
surface
#F3F2F4
border
#CDCCCE
text
#0F0E10
muted
#7F7E7F

Preview Lab

Preview with #7E798E

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

Preview Lab → · Contrast checker → · Palette generator →

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