#7D798E#7D798E

#7D798E is a mid, muted violet. Relative luminance 0.200; OKLCH L 58.7% C 0.032 H 294.1°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7D798E
RGBrgb(125, 121, 142)
HSLhsl(251, 9%, 52%)
HSVhsv(251, 15%, 56%)
CMYKcmyk(12%, 14.8%, 0%, 44.3%)
CIE-LABlab(51.82, 5.93, -10.82)
CIE-LCHlch(51.82, 12.34, 298.70°)
OKLaboklab(58.69% 0.0131 -0.0292)
OKLCHoklch(58.69% 0.032 294.1)
XYZxyz(20.1763, 19.9876, 28.3810)
Luminance0.1999 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D798E #8A8E79
analogous
#79808E #7D798E #88798E
triadic
#7D798E #8E7D79 #798E7D
tetradic
#7D798E #8E7980 #8A8E79 #798E88
square
#7D798E #8E7980 #8A8E79 #798E88
split-complementary
#7D798E #8E8879 #808E79
monochromatic
#43404C #605C6D #7D798E #9D9AAA #BDBBC6

Accessibility & contrast

On white

4.20
#7D798E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#7D798E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D798E
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D798E#FFFFFF#000000##000000
##7D798E1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#757C8F
Deuteranopia (green-blind)
#757B8D
Tritanopia (blue-blind)
#7A7C80
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7d798e;
/* rgb */ color: rgb(125, 121, 142);
/* oklch */ color: oklch(58.7% 0.032 294.1);
Tailwind
colors: {
  custom: {
    50: '#a29faf',
    500: '#7d798e',
    950: '#000000',
  },
}
SCSS
$custom: #7d798e;
$custom-light: #a29faf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d798e",
  "rgb": {
    "r": 125,
    "g": 121,
    "b": 142
  },
  "hsl": {
    "h": 251.429,
    "s": 8.502,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5869,
    "c": 0.03204,
    "h": 294.1
  },
  "luminance": 0.19988
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D798E

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

Preview Lab → · Contrast checker → · Palette generator →

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