#7F798E#7F798E

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

Color values

HEX#7F798E
RGBrgb(127, 121, 142)
HSLhsl(257, 9%, 52%)
HSVhsv(257, 15%, 56%)
CMYKcmyk(10.6%, 14.8%, 0%, 44.3%)
CIE-LABlab(51.99, 6.63, -10.55)
CIE-LCHlch(51.99, 12.46, 302.17°)
OKLaboklab(58.87% 0.0154 -0.0285)
OKLCHoklch(58.87% 0.032 298.5)
XYZxyz(20.4713, 20.1397, 28.3948)
Luminance0.2014 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F798E #888E79
analogous
#797E8E #7F798E #8A798E
triadic
#7F798E #8E7F79 #798E7F
tetradic
#7F798E #8E797E #888E79 #798E8A
square
#7F798E #8E797E #888E79 #798E8A
split-complementary
#7F798E #8E8A79 #7E8E79
monochromatic
#44404C #615C6D #7F798E #9F9AAA #BEBBC6

Accessibility & contrast

On white

4.18
#7F798E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#7F798E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F798E
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F798E#FFFFFF#000000##000000
##7F798E1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f798e;
/* rgb */ color: rgb(127, 121, 142);
/* oklch */ color: oklch(58.9% 0.032 298.5);
Tailwind
colors: {
  custom: {
    50: '#a49faf',
    500: '#7f798e',
    950: '#000000',
  },
}
SCSS
$custom: #7f798e;
$custom-light: #a49faf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f798e",
  "rgb": {
    "r": 127,
    "g": 121,
    "b": 142
  },
  "hsl": {
    "h": 257.143,
    "s": 8.502,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58866,
    "c": 0.03238,
    "h": 298.5
  },
  "luminance": 0.2014
}

Semantic roles & 50–950 ramp

primary
#7F798E
secondary
#B3B6AD
accent
#B276A1
background
#FAF9FA
surface
#F4F2F4
border
#CECCCE
text
#0F0E10
muted
#7F7E7F

Preview Lab

Preview with #7F798E

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

Preview Lab → · Contrast checker → · Palette generator →

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