#797F6B
Closest named color: Medium Grey (#7D7F7C). oklch(58.6% 0.03 120.9), rgb(121, 127, 107).
Aa
Black text reads best on this color (5.06:1).
About this color
#797F6B is a medium-dark, muted yellow. In OKLCH its lightness is 59%, its chroma 0.030 and its hue 121°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Medium Grey (#7D7F7C), ΔE 0.027 away. Black text reads best on it, at 5.06:1.
| Hue family | Yellows |
| Lightness | medium-dark (59%) |
| Chroma | muted (0.030) |
| Temperature | in between |
| Nearest name | Medium Grey (#7D7F7C) |
| Black text | 5.06:1 |
| White text | 4.14:1 |
Values
| HEX | #797F6B |
| RGB | rgb(121, 127, 107) |
| HSL | hsl(78, 9%, 46%) |
| OKLCH | oklch(58.6% 0.03 120.9) |
Contrast
WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #797F6B | 4.14:1 | AA large text | Lc -74.1 | Content text, not long reading |
| Black text on #797F6B | 5.06:1 | AA | Lc 35.5 | Non-text elements, placeholder text |
| #797F6B text on white | 4.14:1 | AA large text | Lc 68.6 | Content text, not long reading |
| #797F6B text on black | 5.06:1 | AA | Lc -33.1 | Non-text elements, placeholder text |
Tints and shades
A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 600.
-
Step 50
50
#F5F6F4
oklch(97.2% 0.003 128.5)
-
Step 100
100
#E9EAE7
oklch(93.5% 0.004 121.6)
-
Step 200
200
#D8DAD4
oklch(88.5% 0.008 121.6)
-
Step 300
300
#BFC2B8
oklch(80.9% 0.014 120.3)
-
Step 400
400
#9EA394
oklch(70.7% 0.022 122)
-
Step 500
500
#878C7A
oklch(63.1% 0.027 119.8)
-
Step 600
600 (this color)
#797F6B
oklch(58.6% 0.03 120.9)
-
Step 700
700
#5E6352
oklch(49% 0.027 120.7)
-
Step 800
800
#4D5143
oklch(42.7% 0.023 120.3)
-
Step 900
900
#404338
oklch(37.6% 0.019 119.7)
-
Step 950
950
#252721
oklch(26.9% 0.011 122.2)
#797F6B with color blindness
Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #827D6A | 0.014 |
| Deuteranopia (no green cones) | #817C6C | 0.015 |
| Tritanopia (no blue cones) | #7B7D79 | 0.024 |
| Achromatopsia (no color) | #7C7C7C | 0.030 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #797F6B
#797F6B
oklch(58.6% 0.03 120.9)
- #7F788C
#7F788C
oklch(58.6% 0.031 301.4)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #797F6B, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Medium Grey #7D7F7C ΔE 0.027
- Gray #808080 ΔE 0.034
- Brown Grey #8D8468 ΔE 0.035
- Grey Brown #7F7053 ΔE 0.045
- Steel Grey #6F828A ΔE 0.045
- Slate Green #658D6D ΔE 0.046
- Battleship Grey #6B7C85 ΔE 0.046
- Battleship Gray #6C757D ΔE 0.050
Use #797F6B in your product
Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.